diff --git a/CHANGELOG b/CHANGELOG index 586cec3..ee623a7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/bpython/cli.py b/bpython/cli.py index c27bc19..8bfaf3b 100644 --- a/bpython/cli.py +++ b/bpython/cli.py @@ -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