2011-03-11, 14:30
Hi @ all,
I tried to write a python script that launches a windows applicatio ( MakeMKV )
My code is:
The error message in the log is:
import xbmc is set in the script!
Any idea why this is not working?
Other ways to launch the exe?
Thanks for your help in advance.
cheers,
mad-max
I tried to write a python script that launches a windows applicatio ( MakeMKV )
My code is:
Code:
import xbmc
import sys,os,xbmcaddon,xbmcgui,shutil,re
# Script constants
__scriptname__ = "MakeMKV"
__author__ = "mad-max"
__version__ = "0.1"
run = XBMC.System.Exec("C:\Program Files (x86)\MakeMKV\makemkv.exe")
run()
The error message in the log is:
Code:
ERROR: Traceback (most recent call last):
File "C:\Users\max\AppData\Roaming\XBMC\addons\script.DVBViewer\default.py", line 11, in ?
run = XBMC.System.Exec("C:\Program Files (x86)\MakeMKV\makemkv.exe")
NameError: name 'XBMC' is not defined
import xbmc is set in the script!
Any idea why this is not working?
Other ways to launch the exe?
Thanks for your help in advance.
cheers,
mad-max