mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[bin] Ensure that meshroom_compute could be launched without any environment configuration
This commit is contained in:
parent
8e5f8a55d1
commit
c4f64d718d
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue