mistral wrote: > No, something is wrong there. what I need is just compile one python > file which will generate html page, with parameters: > "exec" "python" "-O" "$0" "$@" > > just need simple way do this(script is correct), i will not set any > patches anywhere, can i do this wrom normal GUI?
Hmmm... Are you talking about _RUNNING_ python scripts? Is that what you mean by "compile" -- you mean execute? Is that what this broken shell script means? "exec" "python" "-O" "$0" "$@" You don't need exec, the double quote on every word breaks it, and passing $0 (which is the shell script itself) to python is sure to break. Try this: #!/bin/sh python -O "$@" Then: $ run_python.sh file.py arg1 arg2 arg3 Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list