[EMAIL PROTECTED] wrote: > >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.
For the record, the %PERCENT% syntax for looking up an environment variable is just a feature of the XP command shell. It has no meaning to any other part of Windows. os.environ is the right answer. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list