mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-31 23:38:48 +02:00
Adapt unittests to deal with graph saving
This commit is contained in:
parent
cd219fd70e
commit
346d78df30
4 changed files with 45 additions and 31 deletions
|
@ -24,7 +24,7 @@ from PySide6.QtCore import (
|
|||
from meshroom.core import sessionUid
|
||||
from meshroom.common.qt import QObjectListModel
|
||||
from meshroom.core.attribute import Attribute, ListAttribute
|
||||
from meshroom.core.graph import Graph, Edge
|
||||
from meshroom.core.graph import Graph, Edge, generateTempProjectFilepath
|
||||
from meshroom.core.graphIO import GraphIO
|
||||
|
||||
from meshroom.core.taskManager import TaskManager
|
||||
|
@ -516,11 +516,8 @@ class UIGraph(QObject):
|
|||
|
||||
@Slot()
|
||||
def saveAsTemp(self):
|
||||
from meshroom.env import EnvVar
|
||||
from datetime import datetime
|
||||
tempFolder = EnvVar.get(EnvVar.MESHROOM_TEMP_PATH)
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d_%H:%M")
|
||||
self._saveAs(os.path.join(tempFolder, f"meshroom_{timestamp}.mg"))
|
||||
projectPath = generateTempProjectFilepath()
|
||||
self._saveAs(projectPath)
|
||||
|
||||
@Slot()
|
||||
def save(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue