[core] status: add packageName, packageVersion, hostname, sessionUid

This commit is contained in:
Fabien Castan 2017-11-23 20:07:06 +01:00
parent 286012d55f
commit 1cd4034784
2 changed files with 25 additions and 7 deletions

View file

@ -1,15 +1,20 @@
from __future__ import print_function
from contextlib import contextmanager
import importlib
import inspect
import os
import re
import tempfile
from contextlib import contextmanager
import uuid
from meshroom.core.submitter import BaseSubmitter
from . import desc
# make a UUID based on the host ID and current time
sessionUid = str(uuid.uuid1())
cacheFolderName = 'MeshroomCache'
defaultCacheFolder = os.environ.get('MESHROOM_CACHE', os.path.join(tempfile.gettempdir(), cacheFolderName))
defaultCacheFolder = defaultCacheFolder.replace("\\", "/")