(self, target)
| 187 | |
| 188 | class _ScriptTarget(_ExecutableTarget): |
| 189 | def __init__(self, target): |
| 190 | self._check(target) |
| 191 | self._target = self._safe_realpath(target) |
| 192 | |
| 193 | # If PYTHONSAFEPATH (-P) is not set, sys.path[0] is the directory |
| 194 | # of pdb, and we should replace it with the directory of the script |
| 195 | if not sys.flags.safe_path: |
| 196 | sys.path[0] = os.path.dirname(self._target) |
| 197 | |
| 198 | @staticmethod |
| 199 | def _check(target): |
nothing calls this directly
no test coverage detected