os.startfile: Why is there no arguments option?

Christian Wutte christian.wutte at gmx.at
Wed Oct 12 04:22:34 EDT 2011


Hello all,
as stated in the docs [1] os.startfile relies on Win32 ShellExecute().
So maybe someone can explain it to me, why there is no support for
program arguments.
That's quite a pity since os.startfile is the easiest way for an
elevated run (with 'runas' as option) and without arguments of limited
use.

[1] http://docs.python.org/library/os.html?highlight=startfile#os.startfile

Thanks,
Christian



More information about the Python-list mailing list