mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-23 19:47:39 +02:00
[core] desc.node: Ensure all paths are sent as POSIX strings
This commit is contained in:
parent
517a64d82e
commit
caaba97834
2 changed files with 11 additions and 7 deletions
|
@ -14,8 +14,8 @@ from .attribute import StringParam, ColorParam
|
|||
import meshroom
|
||||
from meshroom.core import cgroup
|
||||
|
||||
_MESHROOM_ROOT = Path(meshroom.__file__).parent.parent
|
||||
_MESHROOM_COMPUTE = _MESHROOM_ROOT / "bin" / "meshroom_compute"
|
||||
_MESHROOM_ROOT = Path(meshroom.__file__).parent.parent.as_posix()
|
||||
_MESHROOM_COMPUTE = (Path(_MESHROOM_ROOT) / "bin" / "meshroom_compute").as_posix()
|
||||
|
||||
|
||||
class MrNodeType(enum.Enum):
|
||||
|
@ -148,14 +148,14 @@ class BaseNode(object):
|
|||
chunk.saveStatusFile()
|
||||
cmdList = shlex.split(cmd)
|
||||
# Resolve executable to full path
|
||||
prog = shutil.which(cmdList[0], path=env.get('PATH') if env else None)
|
||||
prog = shutil.which(cmdList[0], path=env.get("PATH") if env else None)
|
||||
|
||||
print(f"Starting Process for '{chunk.node.name}'")
|
||||
print(f" - commandLine: {cmd}")
|
||||
print(f" - logFile: {chunk.logFile}")
|
||||
if prog:
|
||||
cmdList[0] = prog
|
||||
print(f" - command full path: {prog}")
|
||||
cmdList[0] = Path(prog).as_posix()
|
||||
print(f" - command full path: {cmdList[0]}")
|
||||
|
||||
# Change the process group to avoid Meshroom main process being killed if the
|
||||
# subprocess gets terminated by the user or an Out Of Memory (OOM kill).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue