Merge pull request #259 from jsivak/feature/read_user_config
Tell ptpython to read/process the user's config file.
This commit is contained in:
commit
fef17b6f33
@ -12,7 +12,7 @@ else:
|
|||||||
HAVE_BPYTHON = True
|
HAVE_BPYTHON = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from ptpython.repl import embed as ptpython_embed
|
from ptpython.repl import embed as ptpython_embed, run_config
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAVE_PTPYTHON = False
|
HAVE_PTPYTHON = False
|
||||||
else:
|
else:
|
||||||
@ -233,7 +233,8 @@ def run_ptpython_shell(globals, locals):
|
|||||||
import os
|
import os
|
||||||
history_filename = os.path.expanduser('~/.ptpython_history')
|
history_filename = os.path.expanduser('~/.ptpython_history')
|
||||||
ptpython_embed(globals.copy(), locals.copy(),
|
ptpython_embed(globals.copy(), locals.copy(),
|
||||||
history_filename=history_filename)
|
history_filename=history_filename,
|
||||||
|
configure=run_config)
|
||||||
|
|
||||||
|
|
||||||
# vim: foldmethod=marker
|
# vim: foldmethod=marker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user