January 4th, 2004, 11:14 PM
-
how to run.py script
new to python but already have webserver and python installed (Foxserv) which i believe python is installed properly.
c:/foxserv/pthon
im using window xp and i have .py script i want to run
how do i run this script?
thanks
January 5th, 2004, 11:04 AM
-
I've never used Foxserv so i have no idea how you run the script from there but i guess you just access the Python script like any other page?
Usually if you want to run a Python program on windows all you have to do is double click the file. Or do something like..
C:\Python23\> python path\to\python\script.py
Hope this helps,
Mark.
January 5th, 2004, 11:19 AM
-
Also, on Windows, I strongly suggest you add Python to your PATH global variable or else you'll be typing C:\python23\python script.py over and over...
January 9th, 2004, 03:53 PM
-
thanks.. was able to run python.exe
then
python script.py
January 9th, 2004, 04:34 PM
-
Don't know much about FoxServ, but if you install ActiveState python, the installer associates files with .py extension to the python.exe program. Thus, all you need to do is double click on the file (in windows 2k (and possibly others), you can simply type the filename as is (i.e.) foo.py and the command shell knows to call the associated application)
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
January 9th, 2004, 04:44 PM
-
Not just ActivePython scorpy, the core distribution should also associate .py, .pyw, .pyc and .pyo files with python so double clicking should be pretty standard for windows user.
Infact i believe it askes you if you want to associate these file types with Python when you run the installer
. Not that its hard to set this up manually anyway
Ah well, take care guys.
Mark.
January 9th, 2004, 04:49 PM
-
ActiveState python?
where can i dl it?
January 9th, 2004, 04:49 PM
-
Yep, I should have said that the Installer asks you (Incidentally, I declined to do the association when I first installed it on Windows) rather than doing it automatically. Good to know that it is part of the core distribution, rather than an ActivePython addon.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
January 9th, 2004, 04:50 PM
-
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
January 9th, 2004, 05:28 PM
-
Nothing wrong with ActivePython, defiantly a good choice if your developing on windows since it comes with some very third-party modules built-in, including win32all!
However ActivePython always seem to be one step behind the core Python distribution i.e I'm running Python 2.3.3 and have been for a while now where ActivePython is only available up to 2.3.2... Just something you should note 
Mark.