mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Oops, use spaces instead of tabs
This commit is contained in:
parent
4ce64ed83e
commit
7e8b3e1750
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user