Open Ape opened 7 years ago
Can this be merged? I just wanted to use the pip package on Windows, but it fails b/c os.getenv("HOME")
is still used.
Or just don't search for this file on Windows, it's not really a must-have, no?
Fixed it like this:
home = os.getenv("HOME")
if home:
directories.append(os.path.join(home, ".config"))
Note that this will move '/etc/samsungctl.conf' to '/etc/xdg/samsungctl/samsungctl.conf'. The user config file should remain in '~/.config/samsungctl.conf'.