fix(epf-build,epf-dump): remove double-quoting in subprocess arguments

Same issue as db-* scripts: embedded quotes in list-based subprocess
args get escaped by list2cmdline, causing 1C to receive literal quote
characters in paths. Python's list2cmdline handles quoting automatically
for separate flag+value pairs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-02-25 18:15:53 +03:00
parent 8f3bde5cfc
commit bce2d7c85c
2 changed files with 12 additions and 12 deletions
@@ -75,20 +75,20 @@ def main():
arguments = ["DESIGNER"]
if args.InfoBaseServer and args.InfoBaseRef:
arguments += ["/S", f'"{args.InfoBaseServer}/{args.InfoBaseRef}"']
arguments += ["/S", f"{args.InfoBaseServer}/{args.InfoBaseRef}"]
else:
arguments += ["/F", f'"{args.InfoBasePath}"']
arguments += ["/F", args.InfoBasePath]
if args.UserName:
arguments.append(f'/N"{args.UserName}"')
arguments.append(f"/N{args.UserName}")
if args.Password:
arguments.append(f'/P"{args.Password}"')
arguments.append(f"/P{args.Password}")
arguments += ["/LoadExternalDataProcessorOrReportFromFiles", f'"{args.SourceFile}"', f'"{args.OutputFile}"']
arguments += ["/LoadExternalDataProcessorOrReportFromFiles", args.SourceFile, args.OutputFile]
# --- Output ---
out_file = os.path.join(temp_dir, "build_log.txt")
arguments += ["/Out", f'"{out_file}"']
arguments += ["/Out", out_file]
arguments.append("/DisableStartupDialogs")
# --- Execute ---
+6 -6
View File
@@ -80,21 +80,21 @@ def main():
arguments = ["DESIGNER"]
if args.InfoBaseServer and args.InfoBaseRef:
arguments += ["/S", f'"{args.InfoBaseServer}/{args.InfoBaseRef}"']
arguments += ["/S", f"{args.InfoBaseServer}/{args.InfoBaseRef}"]
else:
arguments += ["/F", f'"{args.InfoBasePath}"']
arguments += ["/F", args.InfoBasePath]
if args.UserName:
arguments.append(f'/N"{args.UserName}"')
arguments.append(f"/N{args.UserName}")
if args.Password:
arguments.append(f'/P"{args.Password}"')
arguments.append(f"/P{args.Password}")
arguments += ["/DumpExternalDataProcessorOrReportToFiles", f'"{args.OutputDir}"', f'"{args.InputFile}"']
arguments += ["/DumpExternalDataProcessorOrReportToFiles", args.OutputDir, args.InputFile]
arguments += ["-Format", args.Format]
# --- Output ---
out_file = os.path.join(temp_dir, "dump_log.txt")
arguments += ["/Out", f'"{out_file}"']
arguments += ["/Out", out_file]
arguments.append("/DisableStartupDialogs")
# --- Execute ---