mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Use the vendored pydevd in tests.
This commit is contained in:
parent
fa3dc2c7a6
commit
13df4d7b59
1 changed files with 9 additions and 0 deletions
|
|
@ -58,6 +58,15 @@ def convert_argv(argv):
|
|||
return cmd + args
|
||||
|
||||
|
||||
def fix_sys_path():
|
||||
pydevdroot = os.path.join(PROJECT_ROOT, 'ptvsd', 'pydevd')
|
||||
if not sys.path[0] or sys.path[0] == '.':
|
||||
sys.path.insert(1, pydevdroot)
|
||||
else:
|
||||
sys.path.insert(0, pydevdroot)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
argv = convert_argv(sys.argv[1:])
|
||||
fix_sys_path()
|
||||
unittest.main(module=None, argv=argv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue