Forcing Python to detect DocumentRoot

Ferrous Cranus nikos.gr33k at gmail.com
Wed Jan 16 08:51:56 EST 2013


When trying to open an html template within Python script i use a relative path to say go one folder back and open index.html

f = open( '../' + page )

How to say the same thing in an absolute way by forcing Python to detect DocumentRoot by itself?



More information about the Python-list mailing list