Windows path in Python - Stack Overflow
https://stackoverflow.com/questions/295383431.05.2010 · Python on Windows should handle forward slashes, too. You could use os.path.join ... >>> import os >>> os.path.join ('C:', os.sep, 'meshes', 'as') 'C:\\meshes\\as' ... or the newer pathlib module >>> from pathlib import Path >>> Path ('C:', '/', 'meshes', 'as') WindowsPath ('C:/meshes/as') Share edited Mar 31 '18 at 13:49
Windows path in Python - Stack Overflow
stackoverflow.com › questions › 2953834Jun 01, 2010 · Path takes a path-like string and adjusts everything for the current OS, either Windows or Linux. For example, on Linux it would convert all backslashes to forward slashes, and on Windows it would do the reverse. Full article: Python 3 Quick Tip: The easy way to deal with file paths on Windows, Mac and Linux