I have a script (python) supposed to build up two paths – one in Linux form(local) and another in Windows form (Windows share)
The script is running under Linux if it matters.
The os.path won’t help for the Windows path. Does python have some helper for this case?
Any smart concatenation eliminating extra separators will help …
You can import and use the OS-specific path implementations:
When you import os.path, it examines the current OS to decide which of these modules to use, but you can simply use them directly if you want.