Browse Source

Rev1758, Change working dir to zeronet.py dir

shortcutme 7 years ago
parent
commit
c1fd2be8cf
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/Config.py
  2. 1 0
      zeronet.py

+ 1 - 1
src/Config.py

@@ -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"

+ 1 - 0
zeronet.py

@@ -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