From 219efe06ec34b5510add6c55f5c67fcbd95fee6c Mon Sep 17 00:00:00 2001 From: AltoXorg <56553686+Alto1772@users.noreply.github.com> Date: Thu, 28 Apr 2022 09:31:49 +0800 Subject: [PATCH] fix command by adding quotes for roms with spaces --- OTRExporter/extract_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OTRExporter/extract_assets.py b/OTRExporter/extract_assets.py index e33b65f0e..7967af113 100755 --- a/OTRExporter/extract_assets.py +++ b/OTRExporter/extract_assets.py @@ -45,7 +45,7 @@ def BuildOTR(xmlPath, rom): shutil.copytree("assets", "Extract/assets") execStr = "x64\\Release\\ZAPD.exe" if sys.platform == "win32" else "../ZAPD/ZAPD.out" - execStr += " ed -i %s -b %s -fl CFG\\filelists -o placeholder -osf placeholder -gsf 1 -rconf CFG/Config.xml -se OTR" % (xmlPath, rom) + execStr += " ed -i %s -b \"%s\" -fl CFG\\filelists -o placeholder -osf placeholder -gsf 1 -rconf CFG/Config.xml -se OTR" % (xmlPath, rom) print(execStr) exitValue = os.system(execStr)