Allow running from usr/share/zeronet
This commit is contained in:
parent
db744f576e
commit
b8fb53ba20
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,12 @@ class Config(object):
|
|||
config_file = start_dir + "/zeronet.conf"
|
||||
data_dir = start_dir + "/data"
|
||||
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:
|
||||
config_file = "zeronet.conf"
|
||||
data_dir = "data"
|
||||
|
|
Loading…
Reference in a new issue