mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-12 22:37:21 +02:00
Add a new module named `plugins` with a `ProcessEnv` class which contains the paths describing the environment needed for the plugin's (node's) process.
14 lines
434 B
Python
14 lines
434 B
Python
from pathlib import Path
|
|
|
|
from meshroom.common import BaseObject
|
|
|
|
class ProcessEnv(BaseObject):
|
|
"""
|
|
Describes the environment required by a node's process.
|
|
"""
|
|
|
|
def __init__(self, folder: str):
|
|
super().__init__()
|
|
self.binPaths: list = [Path(folder, "bin")]
|
|
self.libPaths: list = [Path(folder, "lib"), Path(folder, "lib64")]
|
|
self.pythonPathFolders: list = [Path(folder)] + self.binPaths
|