mod_python and files directory

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Dec 8 09:31:28 CET 2008


En Sat, 06 Dec 2008 09:26:40 -0200, mete <metebilgin48 at gmail.com> escribió:

> but i want to take it somewhere else...i want to it work some other path  
> in
> other system.

os.path.dirname(os.path.abspath(__file__))
returns the directory where the current file resides. Execute it early in
your code.

-- 
Gabriel Genellina




More information about the Python-list mailing list