1
0
forked from VimPlug/jedi

make it possible to access pdb with 'python -m jedi force --pdb'

This commit is contained in:
Dave Halter
2014-06-26 16:14:39 +02:00
parent d444ef9e15
commit 4c849f5969

View File

@@ -24,6 +24,12 @@ elif len(argv) > 1 and argv[1] == 'force':
paths.append(os.path.join(root, filename)) paths.append(os.path.join(root, filename))
else: else:
paths = [path] paths = [path]
for path in paths:
for error in jedi.Script(path=path)._analysis(): try:
print(error) for path in paths:
for error in jedi.Script(path=path)._analysis():
print(error)
except Exception:
if '--pdb' in sys.argv:
import pdb
pdb.post_mortem()