Better way to strip pyc/pyd from config file path
This commit is contained in:
parent
2777c4c537
commit
3cd7e4e48e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Config(object):
|
||||||
else:
|
else:
|
||||||
fix_float_decimals = False
|
fix_float_decimals = False
|
||||||
|
|
||||||
this_file = os.path.abspath(__file__).replace("\\", "/").replace("Config.pyc", "Config.py")
|
this_file = os.path.abspath(__file__).replace("\\", "/").rstrip("cd")
|
||||||
|
|
||||||
if this_file.endswith("/Contents/Resources/core/src/Config.py"):
|
if this_file.endswith("/Contents/Resources/core/src/Config.py"):
|
||||||
# Running as ZeroNet.app
|
# Running as ZeroNet.app
|
||||||
|
|
Loading…
Reference in a new issue