[PythonCE] (no subject)

Carl Shimer carl@orangeimagineering.com
Mon, 14 Oct 2002 15:13:17 -0400


Our good friends at Microsoft decided that in their infinite wisdom it
was not necessary to include certain standard functions in the PocketPC
C runtime (spawn, system, exec, etc).  Therefore, certain functions are
not supported by pythonCE because they would require writing the missing
portions of the C runtime. =20

Fortunately, you have a couple options:

* use the shell API's to launch an application.  I think these are
exposed through the win32gui module.  I haven't tried this approach
myself.
* Write a C based extension that mimics your required functionality by
wrapping the CreateProcess Win32 API.  This is the approach that I
followed to implement the system() call.  I have implemented a simple
module called pyce_exec that provides this functionality although it is
not yet production quality code :)  Obviously, this support for system()
should be rolled into the pythonCE code base.  I would be happy to mail
you this extension.

Regards,
Carl




-----Original Message-----
From: goodey27@juno.com [mailto:goodey27@juno.com]=20
Sent: Monday, October 14, 2002 2:54 PM
To: pythonce@python.org
Subject: [PythonCE] (no subject)

I'm looking to be able to start another .exe with Pythhon. I see there
are some functions in the os module to do this.
What I whant to know is whitch ones are implemented  in WinCE.=20
It seems none of the spawn*(...) funcs are available and when I tried
os.execl(...) I got this error:
"Traceback (most recent call last):
  File "\Program Files\Python\lib\pcceshell.py", line 524, in Interact
    exec codeOb in locals
  File "<input>", line 1, in ?
NameError: global name 'execv' is not definedq"

Please help
Thanks
Isr

________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.

_______________________________________________
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce