Skip to content

Commit

Permalink
Merge pull request #150 from marcoceppi/issue-149
Browse files Browse the repository at this point in the history
Get UNIXCONFDIR from environment first, fallback to /etc fixes #149
  • Loading branch information
nir0s authored Jan 2, 2017
2 parents bc8a1fb + ce974d0 commit f761558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
if not sys.platform.startswith('linux'):
raise ImportError('Unsupported platform: {0}'.format(sys.platform))

_UNIXCONFDIR = '/etc'
_UNIXCONFDIR = os.environ.get('UNIXCONFDIR', '/etc')
_OS_RELEASE_BASENAME = 'os-release'

#: Translation table for normalizing the "ID" attribute defined in os-release
Expand Down

0 comments on commit f761558

Please sign in to comment.