Skip to content

Commit 2b932d7

Browse files
author
Bob Farrell
committed
'.' now in sys.path on startup
Now you can import modules from the current working directory. committer: Bob Farrell <bob@keys.(none)>
1 parent 9e45750 commit 2b932d7

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎CHANGELOG‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ it doesn't print the whole traceback, so a different handler is called). This
1616
was discovered as I was trying to stop autoindentation from occurring on a
1717
SyntaxError, which has also been fixed.
1818

19+
'.' now in sys.path on startup.
20+
1921
v0.7.0
2022
======
2123
C-d behaviour changed so it no longer exits if the current line isn't empty.

‎bpython/cli.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ def __init__(self, scr, interp, statusbar=None, idle=None):
294294
self.list_win_visible = False
295295
self._C = {}
296296
sys.stdin = FakeStdin(self)
297+
sys.path.insert(0, '.')
297298

298299
if not OPTS.arg_spec:
299300
return

0 commit comments

Comments
 (0)