Ticket #13252: mythplugins-configure-mythroot-20180515a.patch

File mythplugins-configure-mythroot-20180515a.patch, 527 bytes (added by mspieth, 7 years ago)
  • mythplugins/configure

    diff --git a/mythplugins/configure b/mythplugins/configure
    index 941d15de8e..54d4e0bfde 100755
    a b check_py_lib(){ 
    477477    check_cmd $python <<EOF
    478478from distutils.sysconfig import get_python_lib
    479479import sys
    480 sys.path.append(get_python_lib(prefix='${prefix}'))
     480if '${mythroot}' != '${sysroot}':
     481    sys.path.append(get_python_lib(prefix='${mythroot}${prefix}'))
     482sys.path.append(get_python_lib(prefix='${sysroot}${prefix}'))
    481483try:
    482484    import $lib
    483485except: