From ec359430d9b2e72432c6f07432ed608074a612c0 Mon Sep 17 00:00:00 2001 From: Toke Jepsen Date: Sun, 21 Jul 2019 16:21:42 +0100 Subject: [PATCH 1/2] Update flags --- pype/scripts/publish_filesequence.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pype/scripts/publish_filesequence.py b/pype/scripts/publish_filesequence.py index 123c35cf70..53b63bd428 100644 --- a/pype/scripts/publish_filesequence.py +++ b/pype/scripts/publish_filesequence.py @@ -51,8 +51,11 @@ def __main__(): elif platform.system().lower() == "windows": pype_command = "pype.bat" - args = [os.path.join(pype_root, pype_command), - "--node", "--publish", "--paths", " ".join(paths)] + args = [ + os.path.join(pype_root, pype_command), + "publish", + " ".join(paths) + ] print("Pype command: {}".format(" ".join(args))) subprocess.call(args, shell=True) From 43ab84721fd75e3cae617b73d55a7f7ea0d13eb1 Mon Sep 17 00:00:00 2001 From: Toke Jepsen Date: Thu, 25 Jul 2019 23:25:00 +0100 Subject: [PATCH 2/2] Raise errors from subprocess to get proper failed jobs. --- pype/scripts/publish_filesequence.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pype/scripts/publish_filesequence.py b/pype/scripts/publish_filesequence.py index 53b63bd428..705a21c8c2 100644 --- a/pype/scripts/publish_filesequence.py +++ b/pype/scripts/publish_filesequence.py @@ -58,7 +58,9 @@ def __main__(): ] print("Pype command: {}".format(" ".join(args))) - subprocess.call(args, shell=True) + exit_code = subprocess.call(args, shell=True) + if exit_code != 0: + raise ValueError("Publishing failed.") if __name__ == '__main__':