[bin] Ensure that meshroom_compute could be launched without any environment configuration

This commit is contained in:
Fabien Castan 2025-03-21 16:47:15 +01:00
parent 8e5f8a55d1
commit c4f64d718d

View file

@ -2,7 +2,14 @@
import argparse
import sys
import meshroom
try:
import meshroom
except:
# If meshroom module is not in the PYTHONPATH, add our root using the relative path
import pathlib
meshroomRootFolder = pathlib.Path(__file__).parent.parent.resolve()
sys.path.append(meshroomRootFolder)
import meshroom
meshroom.setupEnvironment()
import meshroom.core.graph