Tips for coding python scripts / plugins compatible with Linux, Mac, Windows AND Xbox
#19
Doesn't xbmc python support SYS module
os.getcwd() doesnt always give current directory of script, it depends where the script is RUN from... even on windows or linux..

Try os.path.dirname( sys.argv[0] )
Spread the knowledge, nothing else.Image
Reply


Messages In This Thread
Great but... - by Gamester17 - 2008-09-08, 22:48
[No subject] - by jmarshall - 2008-09-08, 22:57
[No subject] - by Temhil - 2008-09-08, 23:30
[No subject] - by jmarshall - 2008-09-08, 23:35
[No subject] - by Gamester17 - 2008-09-09, 10:33
[No subject] - by blittan - 2008-09-09, 23:48
[No subject] - by BigBellyBilly - 2008-09-12, 12:23
[No subject] - by Temhil - 2008-09-13, 00:44
[No subject] - by BigBellyBilly - 2008-09-13, 09:54
FIXED in XBMC Beta1 - by Temhil - 2008-10-07, 01:25
[No subject] - by Nuka1195 - 2008-10-07, 01:51
[No subject] - by blittan - 2008-10-07, 08:40
[No subject] - by CrashX - 2009-02-16, 05:11
[No subject] - by CrashX - 2009-02-17, 02:51
[No subject] - by BigBellyBilly - 2009-02-17, 13:24
[No subject] - by Nuka1195 - 2009-02-17, 15:33
[No subject] - by BigBellyBilly - 2009-02-17, 15:36
[No subject] - by plex - 2011-12-06, 12:47
Logout Mark Read Team Forum Stats Members Help
Tips for coding python scripts / plugins compatible with Linux, Mac, Windows AND Xbox2