ver 23 invokation on Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Genkin

    ver 23 invokation on Windows

    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?

    Thank you,
    Alex

  • Tim Roberts

    #2
    Re: ver 23 invokation on Windows

    "Alex Genkin" <agenkin@dimacs .rutgers.edu> wrote:
    [color=blue]
    >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?[/color]

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

    C:\TMP>assoc .py
    ..py=Python.Fil e

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

    C:\TMP>
    --
    - Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.

    Comment

    Working...