Fix leap config path for windows
In the systray we are using:
ConfigPath = os.Getenv("APPDATA") + "\\leap"
That ends up being c:\Documents and Settings\<user>\Appdata\Roaming\leap
In bitmask-dev:
from win32com.shell import shell, shellcon
get_path = lambda name: shell.SHGetFolderPath(
0, getattr(shellcon, name), None, 0).encode('utf8')
path = get_path('CSIDL_LOCAL_APPDATA')
That ends up being c:\Documents and Settings\<user>\Appdata\Local\leap
We should use the same path for both.
Edited by meskio