Re: [python-win32] checking file permission on network share

2011-09-01 Thread Ben Timby
On Wed, Aug 31, 2011 at 8:38 AM, Steffen Frömer wrote: > Hello, > > i try to check, if a file on network-share is read only. I tried different > ways. Not the prettiest, but if you want to know if the SHARE is read only, you can do a functional test. import os, tempfile def check_write(filename

Re: [python-win32] AppData directory on Windows?

2011-09-01 Thread Kevin Walzer
-Original Message- This might help...? http://timgolden.me.uk/python/winshell.html - The os.environ['appdata'] bit worked fine for me, thanks for suggesting it. That winshell package looks quite nice--I will check it out. --Kevin ___

Re: [python-win32] AppData directory on Windows?

2011-09-01 Thread Tim Golden
On 01/09/2011 15:04, Werner F. Bruhin wrote: On 09/01/2011 02:49 PM, Tim Golden wrote: On 01/09/2011 13:39, Kevin Walzer wrote: 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.p

Re: [python-win32] AppData directory on Windows?

2011-09-01 Thread Werner F. Bruhin
On 09/01/2011 02:49 PM, Tim Golden wrote: On 01/09/2011 13:39, Kevin Walzer wrote: 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', 'Quic

Re: [python-win32] AppData directory on Windows?

2011-09-01 Thread David Robinow
On Thu, Sep 1, 2011 at 8:49 AM, Tim Golden wrote: > On 01/09/2011 13:39, Kevin Walzer wrote: >> >> 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('~'), 'A

Re: [python-win32] AppData directory on Windows?

2011-09-01 Thread Tim Golden
On 01/09/2011 13:39, Kevin Walzer wrote: 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') This

[python-win32] AppData directory on Windows?

2011-09-01 Thread Kevin Walzer
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 (mos