Skip to content

Commit a617573

Browse files
committed
[core] desc.node: Always use the same path to meshroom_compute
Since the scripts are now packaged alongside their executable versions, nodes can always be executed using `bin/meshroom_compute`. The need to make a distinction between the "regular" and the "release" modes is thus removed.
1 parent 4b6c3f4 commit a617573

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

meshroom/core/desc/node.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
from meshroom.core import cgroup
1616

1717
_MESHROOM_ROOT = Path(meshroom.__file__).parent.parent.as_posix()
18-
if getattr(sys, "frozen", False): # When in release package mode, the path to meshroom_compute differs
19-
_MESHROOM_COMPUTE = (Path(_MESHROOM_ROOT).parent / "meshroom_compute").as_posix()
20-
_MESHROOM_COMPUTE_EXE = _MESHROOM_COMPUTE
21-
else:
22-
_MESHROOM_COMPUTE = (Path(_MESHROOM_ROOT) / "bin" / "meshroom_compute").as_posix()
23-
_MESHROOM_COMPUTE_EXE = f"python {_MESHROOM_COMPUTE}"
18+
_MESHROOM_COMPUTE = (Path(_MESHROOM_ROOT) / "bin" / "meshroom_compute").as_posix()
19+
_MESHROOM_COMPUTE_EXE = f"python {_MESHROOM_COMPUTE}"
2420

2521

2622
class MrNodeType(enum.Enum):

0 commit comments

Comments
 (0)