Running executables in Python Scripts
#1
Hi,

I'm trying to develop my first script in Python over XBMC/Windows, but have been having trouble getting it to work:

Trial #1 - os.system
===============
import os
os.system('xxx')

RESULT (xbmc log)
12:27:17 T:184 M:703119360 INFO: os.system(cmd)
12:27:17 T:184 M:703119360 INFO: AttributeError
12:27:17 T:184 M:703119360 INFO: :
12:27:17 T:184 M:703119360 INFO: 'module' object has no attribute 'system'


Trial #2 - subprocess.Popen
=====================
Can't find msvcrt module

...

I would appreciate any idea on the subject.

Thanks!
Reply
#2
System.Exec() is a built-in.

so xbmc.executebuiltin( "System.Exec(exetoexec)" )
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Running executables in Python Scripts0