I´m trying to write a file into the %temp%-Folder, but the username of every User is different.
Does Python have a function or some kind like that to join the folder? I tried it like this, but I get an Syntax Error, because Python can't decode it:
tmppath = "C:\Users\ %s \AppData\Local\Temp" %( os.getlogin() )
thx for help :)
Edit: The Error, in case it helps:
SyntaxError: (Unicode Error) 'unicodeescape' codec can't decode bytes in
position 2-3: truncated \UXXXXXXXX escape