Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32050> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com