1
0
forked from VimPlug/jedi

only use repl keyword for now in __main__.py.

This commit is contained in:
David Halter
2013-07-31 17:30:53 +02:00
parent ae6dc782da
commit c615e70889
2 changed files with 8 additions and 3 deletions

View File

@@ -1,2 +1,7 @@
from os import path
print(path.join(path.dirname(path.abspath(__file__)), 'replstartup.py'))
from sys import argv
if len(argv) == 2 and argv[1] == 'repl':
# don't want to use __main__ only for repl yet, maybe we want to use it for
# something else. So just use the keyword ``repl`` for now.
from os import path
print(path.join(path.dirname(path.abspath(__file__)), 'replstartup.py'))

View File

@@ -4,7 +4,7 @@
To use Jedi completion in Python interpreter, add the following in your shell
setup (e.g., ``.bashrc``)::
export PYTHONSTARTUP="$(python -m jedi)"
export PYTHONSTARTUP="$(python -m jedi repl)"
Then you will be able to use Jedi completer in your Python interpreter::