right the log entries for the script are
Code:
10:10:46 T:2692108192 M:2557558784 INFO: initializing python engine.
10:10:46 T:2692108192 M:2557558784 DEBUG: Loading: /Library/Application Support/XBMC/system/python/python24-osx.so
10:10:48 T:2692108192 M:2557243392 DEBUG: new python thread created. id=5
10:10:48 T:2961874944 M:2557235200 DEBUG: Running thread 2961874944
10:10:48 T:2961874944 M:2557235200 DEBUG: thread start, auto delete: 0
10:10:48 T:2961874944 M:2557235200 DEBUG: Python thread: start processing
10:10:48 T:2692108192 M:2557698048 DEBUG: CGUIMediaWindow::GetDirectory (/Users/matthewspence/Library/Application Support/XBMC/scripts/My Scripts/)
10:10:48 T:2692108192 M:2557698048 DEBUG: ParentPath = [/Users/matthewspence/Library/Application Support/XBMC/scripts/My Scripts/]
10:10:48 T:2692108192 M:2557693952 DEBUG: Sort, sorting took 0 millis
10:10:48 T:2692108192 M:2557587456 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/defaultFolderBackBig.png: 2.8ms
10:10:48 T:2692108192 M:2557337600 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/list-focus.png: 2.4ms
10:10:48 T:2692108192 M:2557087744 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/DefaultScriptBig.png: 3.3ms
10:10:48 T:2961874944 M:2556997632 INFO: -->Python Interpreter Initialized<--
10:10:48 T:2961874944 M:2557014016 INFO:
10:10:48 T:2961874944 M:2557014016 INFO: Traceback (most recent call last):
10:10:48 T:2961874944 M:2557014016 INFO: File "/Users/matthewspence/Library/Application Support/XBMC/scripts/My Scripts/mytest.py", line 5, in ?
10:10:48 T:2961874944 M:2557014016 INFO:
10:10:48 T:2961874944 M:2557014016 INFO: from appscript import *
10:10:48 T:2961874944 M:2557014016 INFO: ImportError
10:10:48 T:2961874944 M:2557014016 INFO: :
10:10:48 T:2961874944 M:2557014016 INFO: No module named appscript
10:10:48 T:2961874944 M:2557014016 INFO:
10:10:48 T:2961874944 M:2557014016 ERROR: Scriptresult: Error
10:10:48 T:2692108192 M:2556997632 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/button-focus.png: 2.3ms
10:10:48 T:2692108192 M:2556985344 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/button-focus.png: 2.3ms
10:10:48 T:2961874944 M:2558672896 INFO: Python script stopped
10:10:48 T:2961874944 M:2558672896 DEBUG: staticThread, deleting thread graphic context
10:10:48 T:2961874944 M:2558672896 DEBUG: Thread 2961874944 terminating
10:10:48 T:2692108192 M:2558672896 DEBUG: python thread 5 destructed
10:10:48 T:2692108192 M:2558701568 INFO: Python, unloading python24.dll cause no scripts are running anymore
10:10:48 T:2692108192 M:2558701568 DEBUG: UnloadExtensionLibs, clearing python extension libraries
10:10:48 T:2692108192 M:2558701568 DEBUG: Unloading: python24-osx.so
10:10:48 T:2692108192 M:2559377408 DEBUG: CGUIMediaWindow::GetDirectory (/Users/matthewspence/Library/Application Support/XBMC/scripts/My Scripts/)
10:10:48 T:2692108192 M:2559377408 DEBUG: ParentPath = [/Users/matthewspence/Library/Application Support/XBMC/scripts/My Scripts/]
10:10:48 T:2692108192 M:2559377408 DEBUG: Sort, sorting took 0 millis
10:10:48 T:2692108192 M:2559311872 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/defaultFolderBackBig.png: 2.6ms
10:10:48 T:2692108192 M:2559111168 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/list-focus.png: 2.5ms
10:10:48 T:2692108192 M:2558910464 DEBUG: Load /Library/Application Support/XBMC/skin/Project Mayhem III/media/DefaultScriptBig.png: 2.9ms
10:10:49 T:2692108192 M:2563059712 DEBUG: SDLKeyboard found something unknown (unicode <> printable ASCII): scancode: 0, sym: 306, unicode: 0, modifier: 0
path outside xbmc is
Code:
['', '/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-i386.egg', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Python/2.5/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC']
and path inside xbmc before the sys.path.append is
Code:
['Users/matthewspence/Library/Application SUpport/XBMC/scripts/My Scripts','/Library/Application Support/XBMC/system/python/python24.zip','/Library/Application Support/XBMC/system/python/lib-osx']
and path inside xbmc after the sys.path.append is
Code:
['Users/matthewspence/Library/Application Support/XBMC/scripts/My Scripts','/Library/Application Support/XBMC/system/python/python24.zip','/Library/Application Support/XBMC/system/python/lib-osx','/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-appscript']