Python doesn't understand %userprofile%

bsagert at bsagert at
Tue Jun 10 17:56:53 CEST 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