4485. [bug] Look in $prefix/lib/pythonX.Y/site-packages for

the python modules we install. [RT #43330]
This commit is contained in:
Mark Andrews
2016-10-11 15:20:37 +11:00
parent 6caac8d9a9
commit 01862dfaa5
4 changed files with 9 additions and 3 deletions

View File

@@ -12,7 +12,8 @@ import sys
sys.path.insert(0, os.path.dirname(sys.argv[0]))
if os.name != 'nt':
sys.path.insert(1, os.path.join('@prefix@', 'lib'))
sys.path.insert(1, os.path.join('@prefix@', 'lib',
'python' + sys.version[:3], 'site-packages'))
import isc.checkds

View File

@@ -12,7 +12,8 @@ import sys
sys.path.insert(0, os.path.dirname(sys.argv[0]))
if os.name != 'nt':
sys.path.insert(1, os.path.join('@prefix@', 'lib'))
sys.path.insert(1, os.path.join('@prefix@', 'lib',
'python' + sys.version[:3], 'site-packages'))
import isc.coverage

View File

@@ -12,7 +12,8 @@ import sys
sys.path.insert(0, os.path.dirname(sys.argv[0]))
if os.name != 'nt':
sys.path.insert(1, os.path.join('@prefix@', 'lib'))
sys.path.insert(1, os.path.join('@prefix@', 'lib',
'python' + sys.version[:3], 'site-packages'))
import isc.keymgr