beginners Q: CGI and file paths

Mr J Littler jlittler at silas-2.cc.monash.edu.au
Thu May 27 08:14:38 EDT 1999


Hi,
I've written a cgi script that outputs a couple of files.
The default placement is in the cgi-bin directory and
I want them to go elsewhere. I've tried ...

filename = "/proper_path_here/c_list.html"
append = open(filename, 'a')

but putting the path in front of the filename makes no
difference (and doesn't generate an error)
I read thro cgi.py but can't see what to do.
Any help appreciated...
Cheers
John
-- 
jlittler at silas.cc.monash.edu.au
http://jlittler.cjb.net
http://linuxmusic.cjb.net




More information about the Python-list mailing list