forked from VimPlug/jedi
only use repl keyword for now in __main__.py.
This commit is contained in:
@@ -1,2 +1,7 @@
|
|||||||
from os import path
|
from sys import argv
|
||||||
print(path.join(path.dirname(path.abspath(__file__)), 'replstartup.py'))
|
|
||||||
|
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'))
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
To use Jedi completion in Python interpreter, add the following in your shell
|
To use Jedi completion in Python interpreter, add the following in your shell
|
||||||
setup (e.g., ``.bashrc``)::
|
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::
|
Then you will be able to use Jedi completer in your Python interpreter::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user