From 6ac05771343649b34d6e0083d1d3d4d3542c258f Mon Sep 17 00:00:00 2001 From: Taoning Wang Date: Wed, 26 Jul 2023 15:40:46 -0700 Subject: [PATCH] refactor(ot.py): oconv move stdin after the paths --- pyradiance/ot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyradiance/ot.py b/pyradiance/ot.py index b928209..d1ac50f 100644 --- a/pyradiance/ot.py +++ b/pyradiance/ot.py @@ -47,10 +47,10 @@ def oconv(*paths, warning=True, stdin=None, frozen: bool = False, octree=None) - cmd.append("-w") if frozen: cmd.append("-f") + cmd.extend(paths) if stdin: if isinstance(stdin, bytes): cmd.append("-") else: raise TypeError("stdin should be bytes.") - cmd.extend(paths) return sp.run(cmd, input=stdin, stdout=sp.PIPE, check=True).stdout