I'm trying to create a folder on My Documents in Windows. I managed to do it, but only for O.S using latin alphabet, but not for cyrilic or kanji, for example. I'm using python 3.7.
This is my code
def rutdir(file):
if system() == 'Windows':
cuser = getuser()
rmod = 'C:\\Users\\' + cuser + '\\Documents\\folder\\data\\'
elif system() == 'Linux':
rmod = '/var/games/folder/data/'
rutaf = rmod + file
return rutaf
"rutaf" is working on english, spanish... but not in kanji or cyrilic. How can i define the route 'C:\Users\' + cuser + '\Documents\folder\data\' to be readable by all locale?
Thanks.