mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 23:04:48 +08:00
remove a sys.path hack that is not needed
This commit is contained in:
@@ -100,10 +100,6 @@ import os
|
|||||||
import re
|
import re
|
||||||
from ast import literal_eval
|
from ast import literal_eval
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
import sys
|
|
||||||
sys.path.insert(0, '..')
|
|
||||||
|
|
||||||
import jedi
|
import jedi
|
||||||
from jedi._compatibility import unicode, reduce, StringIO, is_py3k
|
from jedi._compatibility import unicode, reduce, StringIO, is_py3k
|
||||||
|
|
||||||
@@ -289,6 +285,7 @@ if __name__ == '__main__':
|
|||||||
t_start = time.time()
|
t_start = time.time()
|
||||||
# Sorry I didn't use argparse here. It's because argparse is not in the
|
# Sorry I didn't use argparse here. It's because argparse is not in the
|
||||||
# stdlib in 2.5.
|
# stdlib in 2.5.
|
||||||
|
import sys
|
||||||
args = sys.argv[1:]
|
args = sys.argv[1:]
|
||||||
try:
|
try:
|
||||||
i = args.index('--thirdparty')
|
i = args.index('--thirdparty')
|
||||||
|
|||||||
Reference in New Issue
Block a user