MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / _build_launch_env

Function _build_launch_env

tests_python/test_utilities.py:285–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283
284
285def _build_launch_env():
286 import os
287 import pydevd
288
289 environ = os.environ.copy()
290 cwd = os.path.abspath(os.path.dirname(__file__))
291 assert os.path.isdir(cwd)
292
293 resources_dir = os.path.join(os.path.dirname(pydevd.__file__), "tests_python", "resources")
294 assert os.path.isdir(resources_dir)
295
296 attach_to_process_dir = os.path.join(os.path.dirname(pydevd.__file__), "pydevd_attach_to_process")
297 assert os.path.isdir(attach_to_process_dir)
298
299 pydevd_dir = os.path.dirname(pydevd.__file__)
300 assert os.path.isdir(pydevd_dir)
301
302 environ["PYTHONPATH"] = (
303 cwd
304 + os.pathsep
305 + resources_dir
306 + os.pathsep
307 + attach_to_process_dir
308 + os.pathsep
309 + pydevd_dir
310 + os.pathsep
311 + environ.get("PYTHONPATH", "")
312 )
313 return cwd, environ
314
315
316def _check_in_separate_process(method_name, module_name="test_utilities", update_env={}):

Callers 2

test_find_main_thread_idFunction · 0.85

Calls 3

copyMethod · 0.80
joinMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected