Rev1758, Change working dir to zeronet.py dir

This commit is contained in:
shortcutme 2016-12-01 00:34:11 +01:00
parent e919a9bd43
commit c1fd2be8cf
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.5.1"
self.rev = 1756
self.rev = 1758
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"

View File

@ -10,6 +10,7 @@ def main():
main = None
try:
os.chdir(os.path.dirname(__file__)) # Change working dir to zeronet.py dir
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src/lib")) # External liblary directory
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) # Imports relative to src
import main