That way it is all replaced with a single ‘/’. On the other hand, I think that the blenderman script (at least older versions) and yable too, do tend to use a mix of both without problems.
If you want to make sure it is correct for the platform it is running on, you can also use a special function for that:
filename = os.path.normpath(filename)
Something like ‘dir\dir/file’ will then change to ‘dir\dir\file’ on windows, and ‘dir/dir/file’ on linux.