Windows and python execution

P

Peter Hansen

Thorsten said:
If you installed Python the normal way, .py files are already
associated with Python. Windows uses the registry and doesn't make any
difference whether you doubleclick a file or type the name on the
command line

The difference is whether you can execute the script by typing
"scriptname.py" or merely "scriptname". With the "set .py" approach
Mark was mentioning, even though it's not supported by vanilla Windows,
you can do the latter. Same with setting the PATHEXT environment
variable, which the ActivePython distribution apparently does. The
"normal way" of installing Python does *not* set enable this, requiring
you to execute scripts with the full "scriptname.py".

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,274
Messages
2,571,372
Members
48,064
Latest member
alibsskemoSeAve

Latest Threads

Top