Skip to content

Commit

Permalink
Rev1758, Change working dir to zeronet.py dir
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Nov 30, 2016
1 parent e919a9b commit c1fd2be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions zeronet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1fd2be

Please sign in to comment.