From b437b8403c4758813c780b16cebe8357e95a8746 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 9 Sep 2018 00:06:47 -0400 Subject: fix pencil icon path --- lib/utils/paths.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/utils/paths.py') diff --git a/lib/utils/paths.py b/lib/utils/paths.py index 863e8e69..0da8a154 100644 --- a/lib/utils/paths.py +++ b/lib/utils/paths.py @@ -8,3 +8,9 @@ def get_bundled_dir(name): return realpath(os.path.join(sys._MEIPASS, "..", name)) else: return realpath(os.path.join(dirname(realpath(__file__)), '..', '..', name)) + +def get_resource_dir(name): + if getattr(sys, 'frozen', None) is not None: + return realpath(os.path.join(sys._MEIPASS, name)) + else: + return realpath(os.path.join(dirname(realpath(__file__)), '..', '..', name)) -- cgit v1.2.3 From ba1c2ea78ffce7ac2c08e8b54f834024747d816f Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 12 Sep 2018 20:25:15 -0400 Subject: fix lint --- lib/utils/paths.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/utils/paths.py') diff --git a/lib/utils/paths.py b/lib/utils/paths.py index 0da8a154..6dbaf13d 100644 --- a/lib/utils/paths.py +++ b/lib/utils/paths.py @@ -9,6 +9,7 @@ def get_bundled_dir(name): else: return realpath(os.path.join(dirname(realpath(__file__)), '..', '..', name)) + def get_resource_dir(name): if getattr(sys, 'frozen', None) is not None: return realpath(os.path.join(sys._MEIPASS, name)) -- cgit v1.2.3