Skip to content

Commit ee678a8

Browse files
committed
[submitters] Fix os.path.join for rez binary
Removing the "/" of "bin/rez" allows the `join` to work effectively. If it is kept, `rezBin` is erroneously set to `/bin/rez`.
1 parent 6594215 commit ee678a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/submitters/tractorSubmitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def rezWrapCommand(cmd, useCurrentContext: bool = True, otherRezPkg: list[str] =
103103
if "REZ_BIN" in os.environ:
104104
rezBin = os.environ["REZ_BIN"]
105105
elif "REZ_PACKAGES_ROOT" in os.environ:
106-
rezBin = os.path.join(os.environ["REZ_PACKAGES_ROOT"], "/bin/rez")
106+
rezBin = os.path.join(os.environ["REZ_PACKAGES_ROOT"], "bin/rez")
107107
return f"{rezBin} env {packagesStr} -- {cmd}"
108108
return cmd
109109

0 commit comments

Comments
 (0)