Re: How to find Windows Application data directory??

2005-07-01 Thread Bengt Richter
On 28 Jun 2005 21:09:12 -0700, Paul Rubin http://[EMAIL PROTECTED] wrote: Rune Strand [EMAIL PROTECTED] writes: You have the environment variable APPDATA. You can access it with os.environ(). Thanks!! Wow, I'd been hacking away at much messier approaches than that. It's actually

Re: How to find Windows Application data directory??

2005-06-29 Thread pyguy2
I had a post yesterday on just that. Anyways, I always love it when what can be a really annoying problem, reduces into as something simple and elegant like a python dict. (in general, I find dictionaries rock). I remember a similar eureka, when some time ago I found it really neat that split

Re: How to find Windows Application data directory??

2005-06-29 Thread Trent Mick
[Paul Rubin wrote] Rune Strand [EMAIL PROTECTED] writes: You have the environment variable APPDATA. You can access it with os.environ(). Thanks!! Wow, I'd been hacking away at much messier approaches than that. It's actually os.environ['APPDATA'] ;-) Note that the APPDATA

Re: How to find Windows Application data directory??

2005-06-29 Thread Renato Ramonda
Trent Mick ha scritto: Note that the APPDATA environment variable is only there on *some* of the Windows flavours. It is there on Win2k and WinXP. It is not there on WinME. Dunno about Win95, Win98, WinNT... but you may not care about those old guys. That's (I guess) because the DOS spawn

How to find Windows Application data directory??

2005-06-28 Thread Paul Rubin
I'm writing a Windows program that needs to store some user files. The logical place to store them is in Application Data, right? Is there a good way to find the correct location of that directory, preferably without any C extensions? It's ok if the directory is found at installation time

Re: How to find Windows Application data directory??

2005-06-28 Thread Trent Mick
[Paul Rubin wrote] I'm writing a Windows program that needs to store some user files. The logical place to store them is in Application Data, right? Is there a good way to find the correct location of that directory, preferably without any C extensions? It's ok if the directory is found

Re: How to find Windows Application data directory??

2005-06-28 Thread Rune Strand
You have the environment variable APPDATA. You can access it with os.environ(). -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find Windows Application data directory??

2005-06-28 Thread Paul Rubin
Rune Strand [EMAIL PROTECTED] writes: You have the environment variable APPDATA. You can access it with os.environ(). Thanks!! Wow, I'd been hacking away at much messier approaches than that. It's actually os.environ['APPDATA'] ;-) -- http://mail.python.org/mailman/listinfo/python-list