Trying the following code snippet on Windows 7-64:

import os, os.path
userName    = os.getenv('USERNAME')
systemDrive = os.getenv('SystemDrive')
logfilePath = os.path.join(systemDrive, 'Users', userName, 'AppData', 'Local')
print logfilePath, os.path.isdir(logfilePath), os.path.exists(logfilePath)

When I run the code in the debugger (Wing IDE) I get:
C:\Users\My Username\AppData\Local True True

When I build the code using "python pyinstaller -d scriptname.py" and run it, I 
get:
C:\Users\My Username\AppData\Local False False

What is causing the difference?




-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to