While making a wsgi app I am in need of joining route names like /apple, apple/buy etc.
import os
path = os.path.join("/apple/", "/buy")
print("route path:", path)
Now the problem is it works fine in *nix systems but on dos ones the ouput could become:
route path: apple\buy
cuz what is wanted was unix style paths like - apple/buy
is their a way that I can always get unix style paths? should I use something other than os module?