mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-27 00:25:45 -04:00
figure out the osx_resource_dir only once, to fix issue with cli version in OSX
This commit is contained in:
parent
ba424fa427
commit
19fac71a3e
3 changed files with 10 additions and 14 deletions
|
@ -36,7 +36,7 @@ def get_image_path(filename):
|
|||
if p == 'Linux' or p == 'Tails':
|
||||
prefix = os.path.join(sys.prefix, 'share/onionshare/images')
|
||||
elif p == 'Darwin':
|
||||
prefix = os.path.join(helpers.get_osx_resources_dir(), 'images')
|
||||
prefix = os.path.join(helpers.osx_resources_dir, 'images')
|
||||
else:
|
||||
prefix = os.path.join(os.path.dirname(get_onionshare_gui_dir()), 'images')
|
||||
return os.path.join(prefix, filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue