Skip to content

Commit

Permalink
fix(utils.py): try to fix render path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoning Wang committed Aug 25, 2023
1 parent a269673 commit 8963e70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyradiance/util.py
Expand Up @@ -640,9 +640,9 @@ def render(
if radcmds[0].startswith("oconv"):
print("rebuilding octree...")
with open(octpath, "wb") as wtr:
_cmd = shlex.split(radcmds[0].split(">", 1)[0])
print(radcmds[0])
sp.run(_cmd, check=True, stdout=wtr)
_cmd = radcmds[0].split(">", 1)[0]
print(_cmd.split())
sp.run(_cmd.split(), check=True, stdout=wtr)
_sidx = 1
elif radcmds[0].startswith(("rm", "del")):
sp.run(shlex.split(radcmds[0]), check=True)
Expand Down

0 comments on commit 8963e70

Please sign in to comment.