mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 18:06:31 +02:00
[ui] override default thumbnail directory with environment variable
This commit is contained in:
parent
ff6358ea07
commit
1819eacbdb
2 changed files with 6 additions and 0 deletions
|
@ -116,6 +116,11 @@ class MeshroomApp(QApplication):
|
|||
pwd = os.path.dirname(__file__)
|
||||
self.setWindowIcon(QIcon(os.path.join(pwd, "img/meshroom.svg")))
|
||||
|
||||
# User specified thumbnail directory
|
||||
thumbnailDir = os.getenv('MESHROOM_THUMBNAIL_DIR')
|
||||
if thumbnailDir is not None:
|
||||
ThumbnailCache.thumbnailDir = thumbnailDir
|
||||
|
||||
# QML engine setup
|
||||
qmlDir = os.path.join(pwd, "qml")
|
||||
url = os.path.join(qmlDir, "main.qml")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue