Merge branch 'master' of https://github.com/HelloZeroNet/ZeroNet
This commit is contained in:
commit
d2cf613872
1 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue