[setup] add 'setupEnvironment' for setting-up standalone configuration

* setup environment vars to work in a prebuilt, standalone configuration
* call 'setupEnvironment' at the beginning of executables
This commit is contained in:
Yann Lanthony 2018-08-01 19:40:37 +02:00
parent c0c28b5dcf
commit b8730324c7
6 changed files with 98 additions and 5 deletions

View file

@ -1,10 +1,12 @@
import signal
import sys
from meshroom.ui.app import MeshroomApp
import meshroom
if __name__ == "__main__":
meshroom.setupEnvironment()
signal.signal(signal.SIGINT, signal.SIG_DFL)
from meshroom.ui.app import MeshroomApp
app = MeshroomApp(sys.argv)
app.exec_()