Not related to the main idea, but the point of os.path.join is to combine path elements using whichever delimiter the OS requires (”/” on Unix, “\” on Windows, etc., even though Windows in particular can also handle ”/”). If you don’t care about that portability, you might as well use normal string concatenation. Or if you’re using os.path.join, you might as well omit the ”/” delimiters in your string literals to get extra portability.
Not related to the main idea, but the point of os.path.join is to combine path elements using whichever delimiter the OS requires (”/” on Unix, “\” on Windows, etc., even though Windows in particular can also handle ”/”). If you don’t care about that portability, you might as well use normal string concatenation. Or if you’re using os.path.join, you might as well omit the ”/” delimiters in your string literals to get extra portability.