Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Make sure the current working directory is on the sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
EnigmaCurry committed Nov 30, 2009
1 parent 5be2e49 commit 2606f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blogofile/main.py
Expand Up @@ -114,6 +114,10 @@ def main(cmd=None):
sys.exit(1)
os.chdir(args.src_dir)

#The src_dir, which is now the current working directory,
#should already be on the sys.path, but let's make this explicit:
sys.path.insert(0,os.curdir)

args.func(args)

def do_help(args):
Expand Down

0 comments on commit 2606f9e

Please sign in to comment.