Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions meshroom/core/graphIO.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import getpass
from enum import Enum
from typing import Any, TYPE_CHECKING, Union

Expand All @@ -23,6 +24,7 @@ class Keys:
NodesVersions = "nodesVersions"
ReleaseVersion = "releaseVersion"
FileVersion = "fileVersion"
Username = "username"
CacheDir = "cacheDir"
Graph = "graph"
Template = "template"
Expand Down Expand Up @@ -94,6 +96,10 @@ def serializeHeader(self) -> dict:
header: dict[str, Any] = {}
header[GraphIO.Keys.ReleaseVersion] = meshroom.__version__
header[GraphIO.Keys.FileVersion] = GraphIO.__version__
try:
header[GraphIO.Keys.Username] = getpass.getuser()
except Exception:
header[GraphIO.Keys.Username] = ""
header[GraphIO.Keys.NodesVersions] = self._getNodeTypesVersions()
if self._graph._hasExplicitCacheDir:
# We store the absolute but also the relative cacheDir path (to the scene file)
Expand Down
Loading