Let say I want to set environment variable from a python script. For example PYTHONPATH.
On Windows it will be path1;path2;path3
(semicolon seperator).
On Linux it will be path1:path2:path3
(colon seperator).
Is there a cross-platform way to build the path using python?