src: switch from Qt to boost implementation of executeProcess (#1145)

* changed implementation of executeProcess
* unified all different implementations of executeProcess
* separated arg list from command for all calls of executeProcess (this also required to remove quotes that were added to path args because otherwise the Python indexer would mistake absolute paths for relative paths.)
* update expected output for custom command tests
This commit is contained in:
Malte Langkabel
2021-02-22 16:00:32 +01:00
committed by GitHub
parent 9a13c194df
commit 3c1638da25
28 changed files with 430 additions and 417 deletions
+11 -1
View File
@@ -1,6 +1,7 @@
#include "ResourcePaths.h"
#include "AppPath.h"
#include "utilityApp.h"
FilePath ResourcePaths::getColorSchemesPath()
{
@@ -37,7 +38,7 @@ FilePath ResourcePaths::getJavaPath()
return AppPath::getSharedDataPath().concatenate(L"data/java/");
}
FilePath ResourcePaths::getPythonPath()
FilePath ResourcePaths::getPythonDirectoryPath()
{
return AppPath::getSharedDataPath().concatenate(L"data/python/");
}
@@ -46,3 +47,12 @@ FilePath ResourcePaths::getCxxCompilerHeaderPath()
{
return AppPath::getSharedDataPath().concatenate(L"data/cxx/include/").getCanonical();
}
FilePath ResourcePaths::getPythonIndexerFilePath()
{
if (utility::getOsType() == OS_WINDOWS)
{
return getPythonDirectoryPath().concatenate(L"SourcetrailPythonIndexer.exe");
}
return getPythonDirectoryPath().concatenate(L"SourcetrailPythonIndexer");
}
+2 -1
View File
@@ -15,8 +15,9 @@ public:
static FilePath getGuiPath();
static FilePath getLicensePath();
static FilePath getJavaPath();
static FilePath getPythonPath();
static FilePath getPythonDirectoryPath();
static FilePath getCxxCompilerHeaderPath();
static FilePath getPythonIndexerFilePath();
};
#endif // RESOURCE_PATHS_H