Fixing commandlet argument values.
This commit is contained in:
parent
b3fc04064d
commit
dd5bffe8d7
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue