Commit 8c4acd4
committed
pass reloader tests
python doesn't have an obvious way to reveal the original command and module name, so we check the __main__ module for __package__ and infer it's a module running as a script unless the value is None, which implies a file path was provided
modules running as scripts are invoked with -m flags
packages running with scripts have base filename __main__.py
from this we recreate an invocation1 parent c1a4cb9 commit 8c4acd4
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3633 | 3633 | | |
3634 | 3634 | | |
3635 | 3635 | | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
3636 | 3644 | | |
3637 | 3645 | | |
3638 | 3646 | | |
| |||
3667 | 3675 | | |
3668 | 3676 | | |
3669 | 3677 | | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
3670 | 3684 | | |
3671 | | - | |
3672 | | - | |
3673 | | - | |
3674 | | - | |
3675 | 3685 | | |
3676 | 3686 | | |
3677 | 3687 | | |
| |||
0 commit comments