()
| 283 | |
| 284 | |
| 285 | def _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 | |
| 316 | def _check_in_separate_process(method_name, module_name="test_utilities", update_env={}): |
no test coverage detected