path-separator

when is it "safe" to mix path separators in Python strings representing Windows paths?

when is it "safe" to mix path separators in Python strings representing Windows paths? Question: This minimal example: (Running in PyCharm debugger) import os from os.path import join import subprocess src_path = r’C:/TEMP/source’ dest_path = r’C:/TEMP/dest’ if __name__ == "__main__": for root, _, files in os.walk(src_path): for name in files: src_file_path = join(root, name) rel_dest_file_path …

Total answers: 1