mirror of
https://github.com/kennethreitz-archive/bpython-gist.git
synced 2026-06-05 23:50:18 +00:00
os.path.expanduser() fixed
Thanks to Klaus Alexander Seis for the patch for this one.
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# bpython 0.3.0::fancy curses interface to the Python repl::Bob Farrell 2008
|
||||
# bpython 0.3.1::fancy curses interface to the Python repl::Bob Farrell 2008
|
||||
#
|
||||
# The MIT License
|
||||
#
|
||||
@@ -510,7 +510,7 @@ class Repl:
|
||||
fn = self.statusbar.prompt( 'Save to file: ' )
|
||||
|
||||
if '~' in fn:
|
||||
fn = fn.replace( '~', os.path.expanduser('~') )
|
||||
fn = os.path.expanduser( fn )
|
||||
|
||||
s = self.getstdout()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user