Popular Usenet Groups

Your one stop shop for all your most popular usenet groups in one place


Categories
Sports Science, Electronics & Maths Hobbies & Recreation
Religion TV & Media Computing - Programming
Music Cycling & Motorsports Computing - General
Photography Computing - Linux Computing - Apple Mac
Others Return to Home Page Register for extra features


Search This Site:

Go Back   Popular Usenet Groups > Computing - Progamming > comp.lang.python

comp.lang.python The Python computer language.


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 3rd November 2007, 10:51 PM   #1
Tim Roberts
 
Join Date: Nov 2007
Age: 57
Total Posts: 279
Re: python at command prompt

Ton van Vliet <sheep.in.herd@green.meadow> wrote:
>
>There's could also be an issue with entering 'python' at the command
>line, and not 'python.exe'. Once the PATH is setup correctly, try to
>enter 'python.exe', and check whether that works.
>
>IMHO, to get any 'program-name' (without the .exe extension) to work,
>one needs to:
>1. register the executable with windows (doesn't work for python) or
>2. make sure the the PATHEXT environment variable is set correctly,
>and includes the .EXE extension (on my w2k system it looks like:
>.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WS H)


You're confusing two things here. Executables (.exe) are always available,
and do not need to be registered to be run without the extension.

It is possible to have Windows execute "abc.py" when you type "abc", and
that DOES require registering the .py extension and adding .py to the
PATHEXT environment variable.

A very useful thing to do, by the way. I have many command line tools for
which I have forgotten whether they are batch files, small executables, or
Python scripts. And that's how it should be.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Tim Roberts is offline   Reply With Quote
 

Bookmarks


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Section Replies Last Post
doubt on command prompt manoj microsoft.public.dotnet.languages.csharp 2 16th January 2008 01:03 PM
doubt on command prompt manoj microsoft.public.dotnet.languages.csharp 0 16th January 2008 05:58 AM
command prompt properties morgan comp.lang.c++ 32 8th November 2007 07:25 AM
command prompt properties morgan comp.lang.c++ 0 7th November 2007 10:40 AM
command prompt properties morgan comp.lang.c++ 0 7th November 2007 10:40 AM


All times are GMT. The time now is 07:51 AM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.