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:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user