[Tutor] Weird Try..Except Error

Steve Willoughby steve at alchemy.com
Fri Nov 25 16:34:16 CET 2011


On 25-Nov-11 04:42, Nikunj.Badjatya at emc.com wrote:
> Hi All,
>
> Thanks for the info.
> I had Python27 and Python32 both installed togethar.
> In Windows the PATH env variable, I had set Python27 exe and lib path.
>
> But When I do
> C:\>  Python  [PressEnter]
> I get 2.7
>
> But when I run
> C:\>  script.py  [PressEnter]
> The script is running with Python3.2 , thts weird because I have set my Path variable with Pytho27 exe and lib.
>
> Which was causing the problem.

The problem is likely that when you installed Python 3.2, Windows 
associated the ".py" extension with the new 3.2 interpreter, PATH 
notwithstanding.

steve

-- 
Steve Willoughby / steve at alchemy.com
"A ship in harbor is safe, but that is not what ships are built for."
PGP Fingerprint 4615 3CCE 0F29 AE6C 8FF4 CA01 73FE 997A 765D 696C


More information about the Tutor mailing list