Python scripts from DOS
Thomas Jollans
thomas at jollans.com
Fri Jul 9 05:49:33 EDT 2010
On 07/09/2010 11:37 AM, Mark Carter wrote:
> On my machine, I can go to a DOS shell, and type
> myscript.py
> This will cause the script to be run as a python script. So that bit
> works.
>
> On another machine, on which python was set up without admin
> privileges, if I type
Which operating systems are we talking about?
> myscript.py
> it will open the "Open With" dialog box. It wont let me execute it
> with python.exe.
What does that mean, exactly? What happens when you try to select python?
> It asks me the same question every time, too. If I
> type
> python myscript.py
> then everything works fine.
>
> Is there a way of setting up the "other" machine so that it replicates
> the behaviour of my machine?
Depends on which OS we're talking about. I'm guessing you're using
Windows, but I don't know which version, and I don't possess the
Registry-fu you'll probably need.
More information about the Python-list
mailing list