Re: system32 directory

2008-03-07 Thread Robert Dailey
On Fri, Mar 7, 2008 at 2:49 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > > Ah. Sorry. I'm sure you can call it via ctypes (built in > from Python 2.5). But even if I'd realised that's what > you'd wanted, I'd probably have given the original answer > because pywin32 pretty much *is* standard library

Re: system32 directory

2008-03-07 Thread Tim Golden
Robert Dailey wrote: > On Thu, Mar 6, 2008 at 2:42 AM, Tim Golden <[EMAIL PROTECTED]> wrote: >> >> First thing to do when asking "How do I do X in Python under Windows?" >> is to stick -- python X -- into Google and you get, eg: >> >> >> http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin

Re: system32 directory

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 19:15:17 -0200, Robert Dailey <[EMAIL PROTECTED]> escribi�: > On Thu, Mar 6, 2008 at 2:42 AM, Tim Golden <[EMAIL PROTECTED]> wrote: >> >> >>> import win32api >> >>> win32api.GetSystemDirectory () >> 'C:\\WINDOWS\\system32' > > I was aiming to figure out if the standard modu

Re: system32 directory

2008-03-06 Thread Mike Driscoll
On Mar 6, 3:49 pm, Trent Mick <[EMAIL PROTECTED]> wrote: > > I was aiming to figure out if the standard modules shipped with Python > > could do this already before I started using 3rd party libraries. Thanks. > > You could also manage it with the ctypes module, if you consider that > standard: it

Re: system32 directory

2008-03-06 Thread Trent Mick
> I was aiming to figure out if the standard modules shipped with Python > could do this already before I started using 3rd party libraries. Thanks. You could also manage it with the ctypes module, if you consider that standard: it is in the python.org and ActivePython distros as of Python 2.5.

Re: system32 directory

2008-03-06 Thread Robert Dailey
On Thu, Mar 6, 2008 at 2:42 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > > > First thing to do when asking "How do I do X in Python under Windows?" > is to stick -- python X -- into Google and you get, eg: > > > http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/win32api__GetSystemDirec

Re: system32 directory

2008-03-06 Thread Tim Golden
Robert Dailey wrote: > Hi, > > Is there a way to get the System32 directory from windows through python? > For example, in C++ you do this by calling GetSystemDirectory(). Is there an > equivalent Python function for obtaining windows installation dependent > paths? Firs

system32 directory

2008-03-05 Thread Robert Dailey
Hi, Is there a way to get the System32 directory from windows through python? For example, in C++ you do this by calling GetSystemDirectory(). Is there an equivalent Python function for obtaining windows installation dependent paths? -- http://mail.python.org/mailman/listinfo/python-list