Skip to content

Python os lib note ​

Get path sep ​

py
os.path.sep # that is / in Unix/Linux and \ in Windows, which is a separator between path components.

Get os env sep ​

py
os.pathsep # that is ; and which is a separator in the PATH environment variable;