diff --git a/oargen.py b/oargen.py index b808789c38b3a9c3a4519985b2c448d51dfac61d..3215c7fd22bc6e0b51e865917ffab050c535cdb7 100755 --- a/oargen.py +++ b/oargen.py @@ -48,7 +48,8 @@ def main(): args = argparser() command = ["oarsub"] - properties = "-p \"" + command.append("-p") + properties = "\"" if args.gpu: properties += "(gpu IS NOT NULL)" else: @@ -58,15 +59,15 @@ def main(): properties += "\"" command.append(properties) - ressources = "-l core={},walltime={}:00:00".format(args.core, args.time) + command.append("-l") + ressources = "core={},walltime={}:00:00".format(args.core, args.time) command.append(ressources) if args.besteffort: - command.append("-t besteffort") - command.append("-t idempotent") + command.extend(["-t", "besteffort", "-t", "idempotent"]) if args.checkpoint is not None: - command.append("--checkpoint {}".format(args.checkpoint)) + command.extend(["--checkpoint", args.checkpoint]) if args.interactive: command.append('-I')