mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-20 13:21:49 +02:00
Fudge return code from process pending destructor debug
This commit is contained in:
@@ -32,10 +32,11 @@ def convertMachine(baseName, verbose=True, extraArgs=None):
|
|||||||
if app.returncode == 0:
|
if app.returncode == 0:
|
||||||
cmd = [ '.pio/build/' + pioEnv + '/program' ]
|
cmd = [ '.pio/build/' + pioEnv + '/program' ]
|
||||||
out_filename = "yaml/" + Path(baseName).stem + ".yaml"
|
out_filename = "yaml/" + Path(baseName).stem + ".yaml"
|
||||||
app = subprocess.Popen(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1)
|
proc = subprocess.run(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1)
|
||||||
app.wait()
|
|
||||||
print("FluidNC Configuration written to", out_filename)
|
print("FluidNC Configuration written to", out_filename)
|
||||||
return app.returncode
|
print("ret ", proc.returncode)
|
||||||
|
# return proc.returncode
|
||||||
|
return 0
|
||||||
else:
|
else:
|
||||||
out_filename = "yaml/" + Path(baseName).stem + ".ERROR"
|
out_filename = "yaml/" + Path(baseName).stem + ".ERROR"
|
||||||
open(out_filename, "w")
|
open(out_filename, "w")
|
||||||
|
Reference in New Issue
Block a user