2008-09-27, 00:03
Hey all,
I'm trying to create a button that launches the AMT script (NOT the plugin). So far the closest I've got is XBMC.RunScript(q:\\scripts\Apple Movie Trailers\default.py). This does indeed run the script, but for some reason running it with that command causes it to look in a different place for its library than running it from the XBMC scripts menu.
If I run it in the scripts menu manually it uses UserData\script_data\Apple Movie Trailers\amt.db, but if I run it with the above command it uses UserData\script_data\amt.db instead.
How can I call it so it will run with the same environment/etc as when I click on it in the scripts menu of XBMC?
I'm trying to create a button that launches the AMT script (NOT the plugin). So far the closest I've got is XBMC.RunScript(q:\\scripts\Apple Movie Trailers\default.py). This does indeed run the script, but for some reason running it with that command causes it to look in a different place for its library than running it from the XBMC scripts menu.
If I run it in the scripts menu manually it uses UserData\script_data\Apple Movie Trailers\amt.db, but if I run it with the above command it uses UserData\script_data\amt.db instead.
How can I call it so it will run with the same environment/etc as when I click on it in the scripts menu of XBMC?