Python doesn't understand %userprofile%

bsagert at gmail.com bsagert at gmail.com
Tue Jun 10 11:56:53 EDT 2008


In xp when I try os.path.getmtime("%userprofile/dir/file%") Python
bites back with "cannot find the path specified" Since my script has
to run on machines where the username is unspecified I need a fix.
Thanks in advance.



More information about the Python-list mailing list