summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2016-09-04 20:08:36 -0700
committerMicah Lee <micah@micahflee.com>2016-09-04 20:08:36 -0700
commit7e8b3e175092732ba6fce72fb74494bb70beb38e (patch)
tree85d9d93a0a4c968deb89a6aa3f9ce8b507ecbeb6
parent4ce64ed83ef6b4a8db489372c209c78bce000b7c (diff)
downloadonionshare-7e8b3e175092732ba6fce72fb74494bb70beb38e.tar.gz
onionshare-7e8b3e175092732ba6fce72fb74494bb70beb38e.zip
Oops, use spaces instead of tabs
-rw-r--r--onionshare/helpers.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/onionshare/helpers.py b/onionshare/helpers.py
index 04e70c12..d80122df 100644
--- a/onionshare/helpers.py
+++ b/onionshare/helpers.py
@@ -39,13 +39,13 @@ def get_resource_path(filename):
resources_dir = os.path.join(sys.prefix, 'share/onionshare')
elif getattr(sys, 'frozen', False): # Check if app is "frozen" with pyinstaller, cx_Freeze
# https://pythonhosted.org/PyInstaller/#run-time-information
- # http://cx-freeze.readthedocs.io/en/latest/faq.html#using-data-files
- if p == 'Windows':
- # Windows is using cx_Freeze
- resources_dir = os.path.join(os.path.dirname(sys.executable), 'resources')
- else:
- # OS X is using PyInstaller
- resources_dir = sys._MEIPASS
+ # http://cx-freeze.readthedocs.io/en/latest/faq.html#using-data-files
+ if p == 'Windows':
+ # Windows is using cx_Freeze
+ resources_dir = os.path.join(os.path.dirname(sys.executable), 'resources')
+ else:
+ # OS X is using PyInstaller
+ resources_dir = sys._MEIPASS
else: # Look for resources directory relative to python file
resources_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))), 'resources')