The 'user' variable during package installation
Published: November 15, 2016 - 6:30 PM
Hello,
I'm trying to create a package with Wapt, and I'd like to send files to the User folder.
I tried using the user_appdata variable, which seemed like a good idea, but it keeps returning this error:
Otherwise, I tried `os.getenv(USERPROFILE): C:\Windows\system32\config\systemprofile`
or `os.getenv(USERNAME):`: returns my machine name and not my username.
I'm a bit stuck here. I understand that the commands are executed with the 'SYSTEM' user, hence the output I'm getting, but how do I fix this?
Thanks,
Mura.
EDIT: More descriptive title
I'm trying to create a package with Wapt, and I'd like to send files to the User folder.
I tried using the user_appdata variable, which seemed like a good idea, but it keeps returning this error:
Otherwise, I tried `os.getenv(USERPROFILE): C:\Windows\system32\config\systemprofile`
or `os.getenv(USERNAME):`: returns my machine name and not my username.
I'm a bit stuck here. I understand that the commands are executed with the 'SYSTEM' user, hence the output I'm getting, but how do I fix this?
Thanks,
Mura.
EDIT: More descriptive title