Permalink
Browse files

add also to working_set

  • Loading branch information...
1 parent 81390e9 commit de1ee28fb4ff6380b8da3ff442daf153afd3fa15 @amol- amol- committed Mar 10, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 gearbox/main.py
View
@@ -16,7 +16,9 @@ def __init__(self):
command_manager=CommandManager('gearbox.commands'))
def initialize_app(self, args):
- sys.path.insert(0, os.getcwd())
+ curdir = os.getcwd()
+ sys.path.insert(0, curdir)
+ pkg_resources.working_set.add_entry(curdir)
try:
self._load_commands_for_current_dir()

0 comments on commit de1ee28

Please sign in to comment.