Commit 11659ad
committed
1. When a module is run from an EditorWindow, if its directory is not in
sys.path, prepend it. This allows the module to import other modules
in the same directory. Do the same for a script run from the command
line.
2. Tweak the IDLE usage message a bit more.
SF Bug 706860 (closed)
SF Patch 686254 (reject specific solution)
SF Patch 507327 (similar)
M PyShell.py
M ScriptBinding.py1 parent 8f570a7 commit 11659ad
2 files changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
529 | 541 | | |
530 | 542 | | |
531 | 543 | | |
| |||
1069 | 1081 | | |
1070 | 1082 | | |
1071 | 1083 | | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1075 | 1087 | | |
1076 | 1088 | | |
1077 | 1089 | | |
| |||
1234 | 1246 | | |
1235 | 1247 | | |
1236 | 1248 | | |
| 1249 | + | |
1237 | 1250 | | |
1238 | 1251 | | |
1239 | 1252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
0 commit comments