mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-02 11:46:45 +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 argparse
|
||||||
import sys
|
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()
|
meshroom.setupEnvironment()
|
||||||
|
|
||||||
import meshroom.core.graph
|
import meshroom.core.graph
|
||||||
|
|
Loading…
Add table
Reference in a new issue