mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[bin] use sys.exit + build meshroom_compute executable
* cx_Freeze removes builtin 'exit' function, use sys.exit in executables instead * build: generate an executable for "meshroom_compute"
This commit is contained in:
parent
569424274b
commit
b147788e5c
6 changed files with 20 additions and 11 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
import meshroom
|
||||
meshroom.setupEnvironment()
|
||||
|
@ -47,7 +48,7 @@ if args.node:
|
|||
for chunk in chunks:
|
||||
if chunk.status.status in submittedStatuses:
|
||||
print('Error: Node is already submitted with status "{}". See file: "{}"'.format(chunk.status.status.name, chunk.statusFile))
|
||||
# exit(-1)
|
||||
# sys.exit(-1)
|
||||
if args.iteration != -1:
|
||||
chunk = node.chunks[args.iteration]
|
||||
chunk.process(args.forceCompute)
|
||||
|
@ -56,7 +57,7 @@ if args.node:
|
|||
else:
|
||||
if args.iteration != -1:
|
||||
print('Error: "--iteration" only make sense when used with "--node".')
|
||||
exit(-1)
|
||||
sys.exit(-1)
|
||||
toNodes = None
|
||||
if args.toNode:
|
||||
toNodes = graph.findNodes([args.toNode])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue