'.' now in sys.path on startup

Now you can import modules from the current working directory.
This commit is contained in:
Bob Farrell
2008-08-31 15:49:16 +01:00
parent 843e859a51
commit b35e0c606c
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -294,6 +294,7 @@ class Repl(object):
self.list_win_visible = False
self._C = {}
sys.stdin = FakeStdin(self)
sys.path.insert(0, '.')
if not OPTS.arg_spec:
return