()
| 395 | |
| 396 | |
| 397 | def run_code(): |
| 398 | if options.target is not None: |
| 399 | # Add current directory to path, like Python itself does for -c. |
| 400 | sys.path.insert(0, str("")) |
| 401 | code = compile(options.target, str("<string>"), str("exec")) |
| 402 | |
| 403 | start_debugging(str("-c")) |
| 404 | |
| 405 | log.describe_environment("Pre-launch environment:") |
| 406 | log.info("Running code:\n\n{0}", options.target) |
| 407 | |
| 408 | eval(code, {}) |
| 409 | else: |
| 410 | log.error("No target to run.") |
| 411 | |
| 412 | |
| 413 | def attach_to_pid(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…