From 68b32957d80387eb105a59d8aa1467bc5cbcfa31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Sch=C3=A4fer?= <pschaefer@ITA.AKUSTIK.RWTH-AACHEN.DE> Date: Fri, 17 Feb 2023 12:05:54 +0100 Subject: [PATCH] VAServerLauncher - Bugfix in py/python check - check also works working with paths containing a space --- Source/VAPlugin/Private/VAServerLauncher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/VAPlugin/Private/VAServerLauncher.cpp b/Source/VAPlugin/Private/VAServerLauncher.cpp index 5c69a80..38a8abe 100644 --- a/Source/VAPlugin/Private/VAServerLauncher.cpp +++ b/Source/VAPlugin/Private/VAServerLauncher.cpp @@ -136,7 +136,7 @@ bool FVAServerLauncher::StartVAServerLauncher() //this checks whether a given command returns a result FString TmpCmdResultFile = "tmpPyVersion.txt"; TmpCmdResultFile = FPaths::Combine(LauncherScriptDir, TmpCmdResultFile); - Command = Command + " >> " + TmpCmdResultFile; + Command = Command + " >> \"" + TmpCmdResultFile + "\""; system(TCHAR_TO_ANSI(*Command)); FString Result; FFileHelper::LoadFileToString(Result, *TmpCmdResultFile); -- GitLab