fix pyspatialite import running QGIS from output dir (fix #7899)