Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support user install on Windows. #4005
On Windows, the usual install paths are
This restores the usual data directory resolution on other platforms.
Correctly fixes #3988, and keeps other platforms working.
referenced this pull request
Sep 25, 2017
Sep 26, 2017
Be aware that this change as shipped in 0.530 (installed from pypi) breaks when run under virtualenv on Windows.
The underlying reason is that - for reasons I don't understand - virtualenv overwrites Lib/site.py with an old version which does not include the function site.getuserbase().
Would a direct call to sysconfig.get_config_var('userbase') be a suitable workaround?