This is relatively simple matter but for some reason I cannot find a way to get the full path of the windows temp directory via python or to find similar request already posted in stack overflow community.
I'm using tempfile.gettempdir() command but it seems there is no way to capture the full path and it returns the short version:
'C:\Users\SVETLO~1\AppData\Local\Temp'
This overall works but there is an important part of the script later on which doesn't and it requires the full temp dir path, which is:
C:\Users\SvetlozarDraganov\AppData\Local\Temp\
Does anyone knows how to get the full absolute path to windows-temp folder with python?
Thanks in advance. Svet
Edit-1:
I'm testing the %fA suggestion from CMD but for some reason, it doesn't work. If I'm using %sA attribute it actually returns the short path version:
CMD: for %A in ("C:\Users\SvetlozarDraganov\AppData\Local\Temp") do @echo %~sA
OUTPUT: C:\Users\SVETLO~1\AppData\Local\Temp
The %fA attribute however doesn't return the full path:
CMD: for %A in ("C:\Users\SVETLO~1\AppData\Local\Temp") do @echo %~fA
OUTPUT: C:\Users\SVETLO~1\AppData\Local\Temp