rg3/youtube-dl — Issue #242: Config file location on Windows
Author: grawity
Created: 2011-12-03 14:48:26+00:00
State: open

Currently, youtube-dl uses Unix-specific locations (XDG_CONFIG_HOME) for finding the configuration files. On Windows, "Application Data" is a better location for this, and the proper way to find it is by using `SHGetFolderPath()`, as in [this example][1].

(Windows also provides `os.environ["APPDATA"]`, but this is somewhat less reliable, and does not exist in some uncommon situations.)

[1]: https://gist.github.com/1427281