Allow async to not need an args file since new-style modules have args embedded

This commit is contained in:
Toshio Kuratomi 2016-04-01 19:50:58 -07:00 committed by Matt Clay
parent ff755da1e5
commit 708d49777d

View file

@ -122,8 +122,11 @@ if __name__ == '__main__':
jid = "%s.%d" % (sys.argv[1], os.getpid())
time_limit = sys.argv[2]
wrapped_module = sys.argv[3]
if len(sys.argv) >= 5:
argsfile = sys.argv[4]
cmd = "%s %s" % (wrapped_module, argsfile)
else:
cmd = wrapped_module
step = 5
# setup job output directory