Chat on IRC |
Using scripts in Python
Posted by diegoeskryptic [send private reply] at July 13, 2002, 09:48:48 AM
First off... according to the Python website (www.python.org) a script is a text file that contains statements of a program... I understand this much... but then the author loses me when he says "You will need to cause the directory containing the file named python.exe to be listed in your system environment variable named path". WHat i need to kno is how to set a path.. I am running WIN ME.. thanx
Posted by diegoeskryptic [send private reply] at July 13, 2002, 09:50:42 AM
.... couldnt i just easily cut and paste from a text editor?
Posted by gian [send private reply] at July 13, 2002, 09:56:30 AM
Your path variable is a thing to tell programs where to start looking for a file etc.
Posted by jay_dee [send private reply] at July 13, 2002, 01:44:21 PM
Isn't the path variable something like
#!/usr/bin/python or #!/usr/bin/env pythis (thats what i use) but thats for Linux and I don't know what it is for Windows or even if I'm talking about the right thing. jay
Posted by diegoeskryptic [send private reply] at July 13, 2002, 05:53:30 PM
for windows ME
Posted by taubz [send private reply] at July 13, 2002, 07:42:37 PM
In the file C:\autoexec.bat there's a line that sets your path variable. You should add the directory in which python is located to the end of that, so when you type "python" in a DOS prompt it can find the file.
- taubz
Posted by jay_dee [send private reply] at July 13, 2002, 07:44:58 PM
Posted by diegoeskryptic [send private reply] at July 13, 2002, 09:22:39 PM
was you trying to say something Jay_dee?
Posted by jay_dee [send private reply] at July 13, 2002, 09:50:22 PM
I said the wrong thing. And when I was editing it, taubz said what i was going to say.
Posted by diegoeskryptic [send private reply] at July 13, 2002, 10:38:18 PM
k...
Register as a new user | ||||||||||||