figure out the osx_resource_dir only once, to fix issue with cli version in OSX

This commit is contained in:
Micah Lee 2015-06-16 14:30:09 -07:00
parent ba424fa427
commit 19fac71a3e
3 changed files with 10 additions and 14 deletions

View file

@ -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)