we use the os module for interacting with the operating system in a way that is cross platform. You could say sChildPath = sPath + '/' + sChild but that wouldn't work on windows
Actually I think this does, at least in Python 3. I've never had a Windows user tell me my code was broken in this manner, so I assume it automatically handles it.
1
u/heptara Nov 20 '15
Actually I think this does, at least in Python 3. I've never had a Windows user tell me my code was broken in this manner, so I assume it automatically handles it.