Fixing commandlet argument values.

This commit is contained in:
JoseMartinez 2024-02-19 16:34:48 +01:00
parent b3fc04064d
commit dd5bffe8d7
2 changed files with 6 additions and 3 deletions

View File

@ -23,13 +23,13 @@ argparser.add_argument(
help='String to put as arguments')
args = argparser.parse_args()
arguments = args.paramstring
arguments = args.paramstring.split()
if os.name == "nt":
sys_name = "Win64"
editor_path = "%s/Engine/Binaries/%s/UnrealEditor" % (ue4_path, sys_name)
command = [editor_path, uproject_path, run]
command.extend(arguments)
command = command + arguments
print("Commandlet:", command)
print("Arguments:", arguments)
subprocess.check_call(command, shell=True)

View File

@ -6,6 +6,9 @@
#include "Commandlet/SetProperPositionForWorldPartitionCommandlet.h"
#include <iostream>
#include <fstream>
#if WITH_EDITOR
#include "FileHelpers.h"
#endif
@ -79,7 +82,7 @@ int32 USetProperPositionForWorldPartitionCommandlet::Main(const FString &Params)
UE_LOG(LogCarlaToolsMapSetProperPositionForWorldPartitionCommandlet, Error, TEXT("Largemapmanager not found "));
}
UEditorLoadingAndSavingUtils::SaveDirtyPackages(true, true);
//UEditorLoadingAndSavingUtils::SaveDirtyPackages(true, true);
UEditorLevelLibrary::SaveCurrentLevel();
return 0;