[PythonCE] launch external application from pythonCE

Michael Foord mike at pcblokes.com
Fri Jan 14 13:30:13 CET 2005


Geir Egeland wrote:

> Hi,
> The error message i get using os.system(cmd) is :
>
> AttributeError: 'module' object has no attribute 'system'
>
> So, this doesn't seem to work...
> Doing a help(os) does not show the 'system' command under available 
> functions.
> Any other suggestions?


Some of the exec* options are available. Try those.

Regards,

Fuzzy
http://www.voidspace.org.uk/python/index.shtml

>
> regards,
> geir egeland
>
> Ed Blake wrote:
>
>> Also you may need to specify the path to the target application as 
>> WinCE has
>> no concept of an environment.
>>
>> --- Stewart Midwinter <stewart.midwinter at gmail.com> wrote:
>>
>>  
>>
>>> Darn, I forgot my PDA at home so I can try this out.  My suggestion
>>> would be to see if os.system() is available, and use that. If Pocket
>>> Internet Explorer's file name is iexplore.exe, do something like the
>>> following
>>>
>>> #import sys, os
>>> sys.path.append('\\Program Files\\Python\\Lib')
>>> cmd = "iexplore.exe http://www.cbc.ca"
>>> os.system(cmd)
>>>
>>> Note that your Python app is still running, but unable to do anything
>>> else, while iexplore is running, if you use this approach.  To unlock
>>> the Python app, use a different approach, like execv or popen or its
>>> variants.
>>>
>>> Let us know if this works!
>>>
>>> cheers
>>> S
>>>
>>>
>>>
>>> On Thu, 13 Jan 2005 10:04:55 +0100, Geir Egeland 
>>> <geir.egeland at gmail.com>
>>> wrote:
>>>   
>>>
>>>> Hi,
>>>> How can I launch Internet Explorer from a  python program ?
>>>>     
>>>
>>> -- 
>>> Stewart Midwinter
>>> stewart at midwinter.ca
>>> stewart.midwinter at gmail.com
>>> _______________________________________________
>>> PythonCE mailing list
>>> PythonCE at python.org
>>> http://mail.python.org/mailman/listinfo/pythonce
>>>
>>>   
>>
>>
>> _______________________________________________
>> PythonCE mailing list
>> PythonCE at python.org
>> http://mail.python.org/mailman/listinfo/pythonce
>>
>>  
>>
>
> _______________________________________________
> PythonCE mailing list
> PythonCE at python.org
> http://mail.python.org/mailman/listinfo/pythonce
>
>
>



More information about the PythonCE mailing list