From 36d528636368709ae93355cb86f70c89f6e36dff Mon Sep 17 00:00:00 2001 From: rejbasket <39080670+rejbasket@users.noreply.github.com> Date: Fri, 28 Apr 2023 21:02:05 +0200 Subject: fixed mac dev mode translations (#2248) updated electron-builder Authored-by: rejbasket --- lib/gui/electron.py | 2 +- lib/i18n.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/gui/electron.py b/lib/gui/electron.py index 651080a9..75e3b16c 100755 --- a/lib/gui/electron.py +++ b/lib/gui/electron.py @@ -37,7 +37,7 @@ def open_url(url): if sys.platform == "darwin" and getattr(sys, 'frozen', None) is None: mac_dev_env = os.environ.copy() # these are paths installed by brew or macports - yarn_path = "/usr/local/bin:/opt/local/bin:" + yarn_path = "/opt/homebrew/bin:/usr/local/bin:/opt/local/bin:" if yarn_path in mac_dev_env["PATH"]: pass else: diff --git a/lib/i18n.py b/lib/i18n.py index 204381dc..0a35ae25 100644 --- a/lib/i18n.py +++ b/lib/i18n.py @@ -30,7 +30,7 @@ def _set_locale_dir(): else: locale_dir = dirname(dirname(realpath(__file__))) - if sys.platform == "darwin": + if sys.platform == "darwin" and getattr(sys, 'frozen', False): locale_dir = os.path.join(locale_dir, "..", 'Resources', 'locales') else: locale_dir = os.path.join(locale_dir, 'locales') -- cgit v1.2.3