Skip to content

Commit b9af67c

Browse files
Merge branch 'fix-410'
2 parents 8321def + 4ae4c81 commit b9af67c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bpython/args.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ def error(self, msg):
2222
raise OptionParserFailed()
2323

2424

25+
def version_banner():
26+
return 'bpython version %s on top of Python %s %s' % (
27+
__version__, sys.version.split()[0], sys.executable)
28+
2529
def parse(args, extras=None, ignore_stdin=False):
2630
"""Receive an argument list - if None, use sys.argv - parse all args and
2731
take appropriate action. Also receive optional extra options: this should

bpython/curtsies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def main(args=None, locals_=None, banner=None):
6161
else:
6262
sys.path.insert(0, '') # expected for interactive sessions (vanilla python does it)
6363

64-
64+
print(bpargs.version_banner())
6565
mainloop(config, locals_, banner, interp, paste, interactive=(not exec_args))
6666

6767
def mainloop(config, locals_, banner, interp=None, paste=None, interactive=True):

0 commit comments

Comments
 (0)