|
|
@ -322,13 +322,16 @@ QString SearchPluginManager::pluginsLocation() |
|
|
|
|
|
|
|
|
|
|
|
QString SearchPluginManager::engineLocation() |
|
|
|
QString SearchPluginManager::engineLocation() |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString folder = "nova"; |
|
|
|
static QString location; |
|
|
|
if (Utils::ForeignApps::pythonInfo().version.majorNumber() >= 3) |
|
|
|
if (location.isEmpty()) { |
|
|
|
folder = "nova3"; |
|
|
|
const QString folder = (Utils::ForeignApps::pythonInfo().version.majorNumber() >= 3) |
|
|
|
const QString location = Utils::Fs::expandPathAbs(specialFolderLocation(SpecialFolder::Data) + folder); |
|
|
|
? "nova3" : "nova"; |
|
|
|
QDir locationDir(location); |
|
|
|
location = Utils::Fs::expandPathAbs(specialFolderLocation(SpecialFolder::Data) + folder); |
|
|
|
if (!locationDir.exists()) |
|
|
|
|
|
|
|
|
|
|
|
const QDir locationDir(location); |
|
|
|
locationDir.mkpath(locationDir.absolutePath()); |
|
|
|
locationDir.mkpath(locationDir.absolutePath()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return location; |
|
|
|
return location; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|