2017-08-08, 20:12
(2017-08-07, 17:24)primaeval Wrote: I couldn't work out a way to get the %AppData% variable to appear in the Settings so I left it at the old default.Been searching internet a little and couldnt find anything definitive on subject but when typing %LOCALAPPDATA%\WebGrab+Plus in windows run command correct folder C:\Users\mike\AppData\Local\WebGrab+Plus is opened. Additionally $Env:LocalAppData in a Windows Powershell provides C:\Users\mike\AppData\Local
If you ever find out please let me know. There probably is a way to do it.
So to get the path to Windows %LOCALAPPDATA% directory in Python could/would something like following work?
Code:
import os
print os.getenv('LOCALAPPDATA')
#or
import os
subpath ="WebGrab+Plus"
print os.path.join(os.getenv("LOCALAPPDATA"), subpath)
Source 1
Source 2