Meshroom/bin/meshroom_submit
Yann Lanthony b8730324c7 [setup] add 'setupEnvironment' for setting-up standalone configuration
* setup environment vars to work in a prebuilt, standalone configuration
* call 'setupEnvironment' at the beginning of executables
2018-08-03 17:24:04 +02:00

21 lines
746 B
Python
Executable file

#!/usr/bin/env python
import argparse
import meshroom
meshroom.setupEnvironment()
import meshroom.core.graph
parser = argparse.ArgumentParser(description='Submit a Graph of processes on renderfarm.')
parser.add_argument('meshroomFile', metavar='MESHROOMFILE.mg', type=str,
help='Filepath to a graph file.')
parser.add_argument('--toNode', metavar='NODE_NAME', type=str,
help='Process the node with its dependencies.')
parser.add_argument('--submitter',
type=str,
default='SimpleFarm',
help='Execute job with a specific submitter.')
args = parser.parse_args()
meshroom.core.graph.submit(args.meshroomFile, args.submitter, toNode=args.toNode)