Rev2142, Fix random wrong data dir path

This commit is contained in:
shortcutme 2017-07-11 21:03:24 +02:00
parent 12ca870e38
commit c8f37674c6
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.5.6"
self.rev = 2141
self.rev = 2142
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"
@ -61,7 +61,7 @@ class Config(object):
else:
fix_float_decimals = False
this_file = os.path.abspath(__file__).replace("\\", "/")
this_file = os.path.abspath(__file__).replace("\\", "/").replace("Config.pyc", "Config.py")
if this_file.endswith("/Contents/Resources/core/src/Config.py"):
# Running as ZeroNet.app