Hi,

I’m getting feedback from a Windows user that says my Tkinter app won’t write 
data to an app temporary directory. Here’s my code:

sys.stderr=open(os.path.join(os.path.expanduser('~'), 'Application Data', 
'QuickWho', 'QuickWho_errors.txt'), 'w')

And here’s the error message:

Traceback (most recent call last):
  File "QuickWho.py", line 7, in <module>
  File "quickwho_main.pyc", line 28, in <module>
IOError: [Errno 2] No such file or directory: 
'C:\\Users\\Softpedia\\Application Data\\QuickWho\\QuickWho_errors.txt'

Do I have the correct path to a user’s app data directory? I tested this 
without issue on Windows 7. I’m not supporting versions of Windows prior to 7, 
but I thought this would work on any version > Windows XP. Please advise. 

Thank you,
Kevin 
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to