diff options
author | Micah Lee <micah@micahflee.com> | 2016-11-13 11:39:28 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2016-11-13 11:39:28 -0800 |
commit | 27bb8216c112cac7b1bdde4f745836075157441c (patch) | |
tree | 00dc32f3ae4ea78b4875861caac01f07fedf3e66 | |
parent | 94f26ea83da886e943ea830a7874e4f0d080d67d (diff) | |
parent | 4f464aaf2c84fc88d330ad31f1276bdc24b2b3ab (diff) | |
download | onionshare-27bb8216c112cac7b1bdde4f745836075157441c.tar.gz onionshare-27bb8216c112cac7b1bdde4f745836075157441c.zip |
Merge branch 'xSmurf-importfix'
-rw-r--r-- | onionshare/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/onionshare/helpers.py b/onionshare/helpers.py index aaa1c999..33a46ce7 100644 --- a/onionshare/helpers.py +++ b/onionshare/helpers.py @@ -34,7 +34,7 @@ def get_resource_path(filename): systemwide, and whether regardless of platform """ p = get_platform() - if p == 'Linux' and sys.argv and sys.argv[0].startswith('/usr/bin/onionshare'): + if p == 'Linux' and sys.argv and sys.argv[0].startswith(sys.prefix): # OnionShare is installed systemwide in Linux resources_dir = os.path.join(sys.prefix, 'share/onionshare') elif getattr(sys, 'frozen', False): # Check if app is "frozen" with cx_Freeze |