Skip to content

Commit 33cec3c

Browse files
committed
Add Meshroom Root and fix an enum class
1 parent 80a0956 commit 33cec3c

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

meshroom/core/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
pipelineTemplates: dict[str, str] = {}
3737

3838

39+
MESHROOM_ROOT = Path(__file__).resolve().parent.parent.parent
40+
41+
3942
def hashValue(value) -> str:
4043
""" Hash 'value' using sha1. """
4144
hashObject = hashlib.sha1(str(value).encode('utf-8'))

meshroom/core/submitter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ def __repr__(self):
6868

6969

7070
class OrderedTaskType(IntFlag):
71-
PLACEHOLDER = auto()
71+
PLACEHOLDER = 0
7272
"""No command : just here to have dependencies"""
73-
PREPROCESS = auto()
73+
PREPROCESS = 1
7474
"""Task that executes a node preprocess method"""
75-
EXPANDING = auto()
75+
EXPANDING = 2
7676
"""Task that executes a node preprocess method"""
77-
CHUNK = auto()
77+
CHUNK = 3
7878
"""Task that will expand during the processing"""
79-
POSTPROCESS = auto()
79+
POSTPROCESS = 4
8080
"""Task that executes a node postprocess method"""
8181

8282

0 commit comments

Comments
 (0)