Aug 20, 2010

Path manipulation in python on different platforms

Since now, I've used the posixpath module without any much thinking about
in my python scripts. It wasn't a problem since now, because all scripts worked
on Solaris/Linux, but now a script has to run on windows and
the functionsj of  posixpath module returned wrong results in my opinion, but
it was just my opinion and python was right.

I used the wrong module switching from posixpath to os.path solved the issues.

os.path handles the setting to the correct system itself and selects
posixpath, ntpath or what is suitable.

Thanks to Python!