[Twisted-Python] RE: win32all and spawnProcess

VAN DER HEIJDEN Maarten mvanderheijden at fininfo.fr
Thu Apr 24 11:48:30 EDT 2003


Sorry ,

I did find the reference to Itmar.

Maintainer: U{Itamar Shtull-Trauring<mailto:twisted at itamarst.org>}

Maarten

> -----Message d'origine-----
> De:	VAN DER HEIJDEN Maarten 
> Date:	24 avr. 03 17:44
> À:	'twisted-python at twistedmatrix.com'
> Objet:	win32all and spawnProcess
> 
> Hello ,
> 
> twisted/internet/defaults.py contains the function spawnProcess 
> 
> This function doesn't seem to work on windows, and contains the following
> comment
>    # This is possible, just needs work - talk to itamar if you want this.
> 
> Who is Itamar ?
> 
> Thanks in advance,
> 
> Maarten
> 
> 
> 
> 
>   def spawnProcess(self, processProtocol, executable, args=(), env={},
> path=None,
>                      uid=None, gid=None, usePTY = 0):
>         p = platform.getType()
>         if p == 'posix':
>             if usePTY:
>                 return process.PTYProcess(self, executable, args, env,
> path, processProtocol, uid, gid, usePTY)
>             else:
>                 return process.Process(self, executable, args, env, path,
> processProtocol, uid, gid)
>      
>         #elif p == "win32":
>         #    if win32process:
>         #        threadable.init(1)
>         #        import win32eventreactor
>         #        return win32eventreactor.Process(self, processProtocol,
> executable, args, env, path)
>         #    else:
>         #        raise NotImplementedError, "process not available since
> win32all is not installed"
>         else:
>             raise NotImplementedError, "process only available in this
> reactor on POSIX"


Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, modification, diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse.FININFO (et ses filiales) décline(nt) toute responsabilité au titre de ce message, dans l'hypothèse ou il aurait été modifié, altéré, falsifié ou encore édité ou diffusé sans autorisation.
-----------------------------------------------------
This message and any attachments (the "message") is intended
solely for the addressees and is confidential. If you receive this 
message in error, please delete it and immediately notify the 
sender. Any use not in accord with its purpose, any dissemination 
or disclosure, either whole or partial, is prohibited except formal 
approval. Neither FININFO (nor any of its subsidiaries or affiliates) 
shall be liable for the message if modified, altered, falsified, edited 
or diffused without authorization. 





More information about the Twisted-Python mailing list