Skip to content

Commit

Permalink
Fixes pypa#5060: Configuration files may now also be stored under `sy…
Browse files Browse the repository at this point in the history
…s.prefix`
  • Loading branch information
zooba committed Feb 15, 2019
1 parent b6a2be0 commit 79a7028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/5060.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Configuration files may now also be stored under ``sys.prefix``
4 changes: 4 additions & 0 deletions src/pip/_internal/utils/appdirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def site_config_dirs(appname):
# always look in /etc directly as well
pathlist.append('/etc')

# allow configuration in sys.prefix without any appname
# see <https://github.com/pypa/pip/issues/5060>
pathlist.append(sys.prefix)

return pathlist


Expand Down

0 comments on commit 79a7028

Please sign in to comment.