Message110056
| Author |
ipatrol |
| Recipients |
ipatrol |
| Date |
2010年07月11日.23:51:15 |
| SpamBayes Score |
0.0036661397 |
| Marked as misclassified |
No |
| Message-id |
<1278892287.6.0.671523214632.issue9228@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I was fiddling around with easier ways to run python scripts in the Windows shell. I'll represent these as hypothetical AUTOEXEC.BAT entries (I used the UI for this):
;Add python to the search path so "python script.py" works
set path="%path%;C:\Python27"
;Add .py to the executable list so "script.py" works
set pathext="%pathext%;.PY"
;And finally (I couldn't find any other way) "script" works
set .py=python.exe
I think it would be a good idea to do this on installation. Any improvements and actual implementations using the registry would be greatly appreciated (especially since autoexec.bat isn't used anymore). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年07月11日 23:51:27 | ipatrol | set | recipients:
+ ipatrol |
| 2010年07月11日 23:51:27 | ipatrol | set | messageid: <1278892287.6.0.671523214632.issue9228@psf.upfronthosting.co.za> |
| 2010年07月11日 23:51:15 | ipatrol | link | issue9228 messages |
| 2010年07月11日 23:51:15 | ipatrol | create |
|