Scripters and plugin writers should be aware of the best practises for accessing files under python:
1. Don’t use the old Q:, P:, T:, U:, Z: paths. Replace these with their special:// counterparts below.
2. Use xbmc.translatePath() to translate any path to it’s true path if/when you need to read or write from the filesystem.
Note that xbmc.translatePath() will take care of number 1 for you in the meantime, but this functionality is not guaranteed to be available forever.
So what should you use?
1. Use special://home/ if you need to read or write to the writeable version of the xbmc install folder.
2. Use special://profile/ if you need to read or write to the current users userdata folder.
3. Use special://temp/ if you need to read or write to a temporary location.
If you absolutely have to, you can also:
4. Use special://xbmc/ to read from the xbmc install folder itself.
5. Use special://masterprofile/ to read from the master users’ userdata folder.
These should not be needed by the majority of scripts.
2009-02-14 17730 modified: [XBOX] fixed: visualisation albumart path (vortex) part 2, reverts rev 17714.
2009-02-14 17722 modified: [XBOX] fixed: Python was broken (and possibly other stuff too) due to faulty (DLL) loader and some _P() errors
2009-02-14 17716 modified: [XBOX] More network cleaning up
2009-02-14 17715 modified: [XBOX] fixed: Unnessecary calls to StartEventServer (and possibly bad as it was doing it during network initialisation), eventserver is started on SERVICES_UP networkmessage.
2009-02-14 17714 modified: [XBOX] fixed: visualisation albumart path (vortex).
2009-02-14 17713 modified: [XBOX] fixed: some compilation warnings.
2009-02-14 17712 modified: [XBOX] merged: Linuxport revisions 17659,17661,
17710 modified: [XBOX] fixed: Network should be started as soon as possible in CApplication::Initialize() and certainly before StartServices() is called. This should fix the strange filecurl/network-crash bug.
Also improved network-logic which will now also retry the network setup, if not inited yet.
2009-02-14 17709 modified: [XBOX] Cosmetics (trunk/XBMC/xbmc.vcproj)
2009-02-14 17708 modified: [XBOX] fixed: reversed the bloody logging of the dns (cosmetics) ;-)
2009-02-14 17705 [XBOX] fixed: T: & P: legacy driveletters failed to work. Special:// dirs are now initialized to Q:.
This should fix the logrotate-issue & the guisettings.xml loading issue too.
2009-02-13 17702 modified: [XBOX] fixed: logging was broken due to pathcleanup & special:// merges. Also added some a safecheck in CLog::Log to prevent logging when the logdir is not set yet.
2009-02-13 17696 fixed: Fanart and Trailer detection was case-sensitive.
2009-02-12 17680 modified: [XBOX] changed: music resampling enabled by default again, max resampling freq to 48000.
2009-02-12 17676 modified: [XBOX] fixed: weather icons. (trunk/XBMC/xbmc/utils/Weather.cpp)
2009-02-11 17660 modified: [XBOX] Merged: Linuxport revisions 17451,17460,17461,17462,17463,17464,17465,17466,17467,17476,17478,17482,17483,
17644 modified: [XBOX] Merged: Linuxport revisions 17509,17523,17524.
This should implement basic special://-protocol support for Xbox.
2009-02-09 17638 modified: [XBOX] changed: Disabled the cache dialog (for now) as it's pretty useless on Xbox and not working properly (probably some locking issue).
2009-02-08 17615 modified: [XBOX] fixed #5809: smb didn't show any files (or actually showed all files as hidden).
Caused by a bad merge. Thanks to A600 for the patch.