lastEdit.py, forward vs. backward slashes

Started by therube, January 18, 2023, 07:12:11 PM

Previous topic - Next topic

therube

lastEdit.py
uses forward slashes, /, in the filename, C:/TMP/test.mp4
(which i'm fine with, & actually prefer)

but if for some reason, you have to or want to "manually"
edit lastEdit.py, & you're pasting a file path/name in there,
you need to s/\\/\//g (for it to work as wanted)

might be nice if you accepted either / or \ as valid,
that way a user wouldn't need to be cognizant of which slash they were using...

(just saying... & yes, for one to manually edit lastEdit.py might be atypical...)


(And I see other posts where / \ have been "problematic", like, https://avidemux.org/smif/index.php/topic,16321.msg71609.html#msg71609.)

eumagga0x2a

I'll have a look, thanks. I think, the directory separator should consistently match the one used by platform, i.e. backslash on Windows, forward slash everywhere else. Mixing both is a recipe for disaster.