mirror of
https://github.com/kennethreitz-archive/bpython-gist.git
synced 2026-06-05 23:50:18 +00:00
'.' now in sys.path on startup
Now you can import modules from the current working directory.
This commit is contained in:
@@ -16,6 +16,8 @@ it doesn't print the whole traceback, so a different handler is called). This
|
||||
was discovered as I was trying to stop autoindentation from occurring on a
|
||||
SyntaxError, which has also been fixed.
|
||||
|
||||
'.' now in sys.path on startup.
|
||||
|
||||
v0.7.0
|
||||
======
|
||||
C-d behaviour changed so it no longer exits if the current line isn't empty.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user