This commit is contained in:
shortcutme 2017-05-07 21:21:35 +02:00
commit d2cf613872
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -80,6 +80,12 @@ class Config(object):
config_file = start_dir + "/zeronet.conf" config_file = start_dir + "/zeronet.conf"
data_dir = start_dir + "/data" data_dir = start_dir + "/data"
log_dir = start_dir + "/log" log_dir = start_dir + "/log"
elif this_file.endswith("usr/share/zeronet/src/Config.py"):
# Running from non-writeable location, e.g., AppImage
start_dir = os.path.expanduser("~/ZeroNet").decode(sys.getfilesystemencoding())
config_file = start_dir + "/zeronet.conf"
data_dir = start_dir + "/data"
log_dir = start_dir + "/log"
else: else:
config_file = "zeronet.conf" config_file = "zeronet.conf"
data_dir = "data" data_dir = "data"