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