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

the python modules we install. [RT #43330]

(cherry picked from commit 01862dfaa5)
This commit is contained in:
Mark Andrews
2016-10-11 15:20:37 +11:00
parent 9b6c83df44
commit c94d4eab34
3 changed files with 7 additions and 2 deletions

View File

@@ -20,7 +20,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

@@ -20,7 +20,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