[EMAIL PROTECTED] ha scritto:

> SpreadTooThin wrote:
> > How does one get the process id?
> > Is there a method for windows and unix (mac os x etc...)
>
> under linux, do:
>   import os
>   os.getpid()

Under Windows:
import ctypes
ctypes.windll.kernel32.GetCurrentProcessId()

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to