Message306376
The same as on DOS.
Change the extension of the Python script from .py to .bat, and insert the following first line:
@path\to\python -x %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
Now you can run it as a bat-file. The command in the first line will run Python, passing the name of this file and up to 9 arguments (you can make it passing more than 9 arguments, but I don't remember the syntax). "@" disables printing this command itself. The first line is not valid Python syntax, but due to the -x option it will be skipped. |
|
| Date |
User |
Action |
Args |
| 2017-11-16 16:42:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner |
| 2017-11-16 16:42:46 | serhiy.storchaka | set | messageid: <1510850566.84.0.213398074469.issue32050@psf.upfronthosting.co.za> |
| 2017-11-16 16:42:46 | serhiy.storchaka | link | issue32050 messages |
| 2017-11-16 16:42:46 | serhiy.storchaka | create | |
|