Remove not used variables in getStartDir
This commit is contained in:
parent
e435274329
commit
62d3b6a3f2
1 changed files with 0 additions and 9 deletions
|
@ -51,21 +51,12 @@ class Config(object):
|
||||||
else:
|
else:
|
||||||
# Running from writeable directory put data next to .app
|
# Running from writeable directory put data next to .app
|
||||||
start_dir = re.sub("/[^/]+/Contents/Resources/core/src/Config.py", "", this_file).decode(sys.getfilesystemencoding())
|
start_dir = re.sub("/[^/]+/Contents/Resources/core/src/Config.py", "", this_file).decode(sys.getfilesystemencoding())
|
||||||
config_file = start_dir + "/zeronet.conf"
|
|
||||||
data_dir = start_dir + "/data"
|
|
||||||
log_dir = start_dir + "/log"
|
|
||||||
elif this_file.endswith("/core/src/Config.py"):
|
elif this_file.endswith("/core/src/Config.py"):
|
||||||
# Running as exe or source is at Application Support directory, put var files to outside of core dir
|
# Running as exe or source is at Application Support directory, put var files to outside of core dir
|
||||||
start_dir = this_file.replace("/core/src/Config.py", "").decode(sys.getfilesystemencoding())
|
start_dir = this_file.replace("/core/src/Config.py", "").decode(sys.getfilesystemencoding())
|
||||||
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"):
|
elif this_file.endswith("usr/share/zeronet/src/Config.py"):
|
||||||
# Running from non-writeable location, e.g., AppImage
|
# Running from non-writeable location, e.g., AppImage
|
||||||
start_dir = os.path.expanduser("~/ZeroNet").decode(sys.getfilesystemencoding())
|
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:
|
||||||
start_dir = "."
|
start_dir = "."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue