Skip to content

Commit

Permalink
Merge pull request #19 from pycontribs/fix/getsitepackages
Browse files Browse the repository at this point in the history
Revert to use of hardcoded python path
  • Loading branch information
ssbarnea authored Jul 3, 2019
2 parents 99ff16c + e2da2d5 commit 5dc34c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions selinux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ def add_location(location):
return False

def get_system_sitepackages():
"""Get sitepackage locations from sytem python"""
system_python = sys.executable
"""Get sitepackage locations from system python"""
# Do not ever use sys.executable here
# See https://github.com/pycontribs/selinux/issues/17 for details
system_python = "/usr/bin/python%s" % \
platform.python_version_tuple()[0]

system_sitepackages = json.loads(
subprocess.check_output([
Expand Down

0 comments on commit 5dc34c3

Please sign in to comment.