Use /usr/local prefix for pythonsitedir on Ubuntu
This commit is contained in:
parent
97ca8107c0
commit
74e0a5827e
1 changed files with 6 additions and 1 deletions
|
@ -9,9 +9,14 @@ Facter.add('pythonsitedir') do
|
|||
end
|
||||
end
|
||||
if pythonbin
|
||||
case Facter.value(:operatingsystem)
|
||||
when "Ubuntu"
|
||||
%x{#{pythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(prefix='/usr/local')"}.chomp
|
||||
else
|
||||
%x{#{pythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"}.chomp
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Facter.add('pythonversion') do
|
||||
|
|
Loading…
Add table
Reference in a new issue