Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
3 events
when toggle format what by license comment
Jun 19, 2019 at 20:57 comment added Jonathan @Tomerikoo . . . true, but I believe os.path.join() will format it in a manner consistent with the operating system so it will work in any environment. Linux uses forward slashes and Windows uses backslashes.
Jun 19, 2019 at 18:12 comment added Tomerikoo Or just "local/" + os.path.basename(inputstring)
Jun 19, 2019 at 18:05 history answered Jonathan CC BY-SA 4.0