Ticket #47125: pythonpluginfactory_use_versioned_python_lib.diff

File pythonpluginfactory_use_versioned_python_lib.diff, 716 bytes (added by RJVB (René Bertin), 10 years ago)
  • kpythonpluginfactory/kpythonpluginfactory.cpp

    From: Sune Vuorela <sune@debian.org>
    Subject: Make kpythonfactory dlopen versioned python library.
    Bug-Debian: http://bugs.debian.org/524685
    Bug-Debian: http://bugs.debian.org/541999
    Last-Update: 2009-09-19
    Forwarded: no
    Origin: vendor
    
    Otherwise, python-dev would be needed for Python Plugin factory to work.
    
    old new QLibrary *LoadPythonLibrary() 
    307307{
    308308    QLibrary *pythonLib = new QLibrary();
    309309    pythonLib->setLoadHints(QLibrary::ExportExternalSymbolsHint);
    310     pythonLib->setFileName(LIB_PYTHON);
     310    pythonLib->setFileName(LIB_PYTHON ".1");
    311311    pythonLib->load();
    312312    return pythonLib;
    313313}