I am trying to identify the current user folder as part of a larger process. I am using the code
If I run the script in the foreground the result is:
However if I enable background processing the result is
Can someone tell me why that is? And how to correct it?
Code:
from os.path import expanduser
HOME = expanduser("~")
Code:
print HOME
'C:\Users\jlay'
Code:
print HOME
'H:\'