Create empty ipythonrc.ini before launching ipython shell

This commit is contained in:
Kovid Goyal 2010-01-01 22:29:56 -07:00
parent 487588bb75
commit b713020a21

View File

@ -455,7 +455,8 @@ def ipython(user_ns=None):
os.environ['IPYTHONDIR'] = ipydir
if not os.path.exists(ipydir):
os.makedirs(ipydir)
rc = os.path.join(ipydir, 'ipythonrc')
for x in ('', '.ini'):
rc = os.path.join(ipydir, 'ipythonrc'+x)
if not os.path.exists(rc):
open(rc, 'wb').write(' ')
UC = '''