1 # Copyright (c) Microsoft Corporation. All rights reserved.
2 # Licensed under the MIT License.
9 useCustomPtvsd = sys.argv[1] == '--custom'
10 ptvsdArgs = sys.argv[:]
13 # Load the debugger package
15 ptvs_lib_path = os.path.join(os.path.dirname(__file__), 'lib', 'python')
17 sys.path.append(ptvs_lib_path)
19 sys.path.insert(0, ptvs_lib_path)
22 import ptvsd.debugger as vspd
23 from ptvsd.__main__ import main
28 vspd.DONT_DEBUG.append(os.path.normcase(__file__))
32 Internal error detected. Please copy the above traceback and report at
33 https://github.com/Microsoft/vscode-python/issues/new
35 Press Enter to close. . .''')
43 sys.path.remove(ptvs_lib_path)