mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-07 13:21:56 +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__)
|
pwd = os.path.dirname(__file__)
|
||||||
self.setWindowIcon(QIcon(os.path.join(pwd, "img/meshroom.svg")))
|
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
|
# QML engine setup
|
||||||
qmlDir = os.path.join(pwd, "qml")
|
qmlDir = os.path.join(pwd, "qml")
|
||||||
url = os.path.join(qmlDir, "main.qml")
|
url = os.path.join(qmlDir, "main.qml")
|
||||||
|
|
|
@ -15,6 +15,7 @@ class ThumbnailCache(QObject):
|
||||||
|
|
||||||
The default cache location is a subdirectory of the user's home directory:
|
The default cache location is a subdirectory of the user's home directory:
|
||||||
~/Meshroom/thumbnails.
|
~/Meshroom/thumbnails.
|
||||||
|
This location can be overriden with the MESHROOM_THUMBNAIL_DIR environment variable.
|
||||||
|
|
||||||
The main use case for thumbnails in Meshroom is in the ImageGallery.
|
The main use case for thumbnails in Meshroom is in the ImageGallery.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue