title: Portable way to set PATH environment variable?
body: <p>I have been having issues with a python script that sets PATH environment variable. The script was written to be run from a 'native' windows python, but due to some mistake from my part, i ran it from a 'cygwin' windows python. So i was setting in my script the PATH environment variable with paths separated by ";", when the cygwin python needs ":" separated paths to understand it.</p>
  
  <p>I'd like to make the script run in both python in the future. So, would there be a method, 'equivalent' of os.path.join(), that would concatenate paths with the correct delimiter depending on how the python version understands the PATH variable (and that possibly would use an equivalent of cygpath command to convert path formats if needed)</p>