mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-12 22:37:21 +02:00
[core] Add ProcessEnv
class in new plugins
module
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.
This commit is contained in:
parent
99a6dc0671
commit
b56420318d
2 changed files with 17 additions and 4 deletions
14
meshroom/core/plugins.py
Normal file
14
meshroom/core/plugins.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue