a/trunk/cforge/cforge/Package/CFORGE/Scripts/cds_script.py | b/trunk/cforge/cforge/Package/CFORGE/Scripts/cds_script.py | ||
---|---|---|---|
... |
... |
||
61 | 61 | ||
62 | processargs = "--profile='" + lastprofile + "' --runscript='" + os.path.join(workingdir,scriptfilename) + "'" |
62 | processargs = "--profile='" + lastprofile + "' --runscript='" + os.path.join(workingdir,scriptfilename) + "'" |
63 | if not ui: |
63 | if not ui: |
64 | processargs += " --noUI" |
64 | processargs += " --noUI" |
65 | if scriptargs != None: |
65 | if scriptargs != None: |
66 | scriptargs = scriptargs.replace("'", "`````") |
||
66 | processargs += " --scriptargs:'" + scriptargs + "'" |
67 | processargs += " --scriptargs:'" + scriptargs + "'" |
67 | print("running codesys with script " + scriptfilename) |
68 | print("running codesys with script " + scriptfilename) |
68 | p.StartInfo.Arguments = processargs |
69 | p.StartInfo.Arguments = processargs |
69 | p.Start() |
70 | p.Start() |
70 | p.WaitForExit() |
71 | p.WaitForExit() |