Tips for coding python scripts / plugins compatible with Linux, Mac, Windows AND Xbox
#4
I fully agree with you Gamester17 it should be the same whatever the OS is, so for time being at least script can run on all platform with this workaround.
Nevertheless, even if that will be fix, developer of script will need to use command as os.join and os.sep instead of writing in the code something like:
Code:
filepath=ROOTDIR + '/' + filename

@Gamester17 - I am not familiar with ticket, how do you file it?

@jmarshall, exactly, that was the command I was talking about - one of the biggest problem is os.getcwd() does not return the same thing. For the format of the path if developer only use os.join and os.sep, it is OK, but with the issue on os.getcwd() for Linux case, we are not able to get the current directory properly.
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