FindPerformanceAttributesByName() of win32pdhutil changes current directory

Lee, Jaeho Jhlee at Brooks.com
Thu May 18 15:57:54 EDT 2000


I found that FindPerformanceAttributesByName() of win32pdhutil changes the
current directory of the process.

import os, win32pdhutil
print "before", os.getcwd()
pids = win32pdhutil.FindPerformanceAttributesByName(procname)
print "after", os.getcwd()

After the function call, getcwd() gives the first directory of my $PATH.
Possible bug of win32pdhutil?

Thanks,
Jaeho




More information about the Python-list mailing list