diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-09-09 00:06:47 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-09-09 00:07:59 -0400 |
| commit | b437b8403c4758813c780b16cebe8357e95a8746 (patch) | |
| tree | 98c42c1e3cc86dd32ff04236402dc160691078e1 /lib/utils | |
| parent | c980279ae681561a5066f929998d437eb6f256f3 (diff) | |
fix pencil icon path
Diffstat (limited to 'lib/utils')
| -rw-r--r-- | lib/utils/paths.py | 6 |
1 files changed, 6 insertions, 0 deletions
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)) |
