February 12th, 2003, 06:30 PM
Join Date: Dec 2001
Location: Houston, TX
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 12
Re: open() path
| Originally posted by calorics |
Hi, i know it isnt possable to redefine the built-in open function, is there a way to tell it where to look so u dont have to enter the whole path? ie.
I have a script in c:\python_scripts and i want to access files in the apache htdocs directory (c:\apache\htdocs\).
Thanks in advance
, but I'm not sure that's the path that it uses (I know that it uses that for python modules, ie, the PYTHONPATH).
But also, in 2.2 and later it's file()
and not open()