ver 23 invokation on Windows

Tim Roberts timr at
Wed Dec 1 06:18:23 CET 2004

"Alex Genkin" <agenkin at> wrote:

>Hi Python experts!
>With ver 22, I used to be able to invoke Python script by simply typing .py file
>name on the command line.
>With ver 23 it no longer works. If set up Windows file association, then the
>script gets invoked, but command line arguments disappear.
>Any idea what to do?

Did you remember to pass the parameters when you created the file

C:\TMP>assoc .py

C:\TMP>ftype Python.File
Python.File=C:\Apps\Python23\python.exe "%1" %*

- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list