Commit graph

23 commits

Author SHA1 Message Date
Candice Bentéjac
caaba97834 [core] desc.node: Ensure all paths are sent as POSIX strings 2025-06-28 11:37:26 +02:00
Candice Bentéjac
3d2dfcb91e [core] Simplify access to commands' prefix and suffix 2025-06-16 18:01:06 +02:00
Candice Bentéjac
2e6ed7dd76 [core] desc.node: Use command prefix and suffix for desc.Node 2025-06-16 14:43:52 +02:00
Candice Bentéjac
b0fbbeaf25 [core] desc.node: Use simplified access to runtime environment 2025-06-16 09:50:42 +01:00
Candice Bentéjac
3ae5a44666 [core] desc.node: Use the process environment for the nodes' execution 2025-06-16 09:50:40 +01:00
Candice Bentéjac
adae26d573 [core] desc.node: Harmonize use of double quotes 2025-06-16 09:50:38 +01:00
Candice Bentéjac
3857daa4e4 [core] desc.node: Add reference to containing plugin in desc.BaseNode 2025-06-16 09:50:38 +01:00
Candice Bentéjac
c16b56c7e3 Clean-up: PEP8 linting and quotes harmonization 2025-06-05 14:40:10 +02:00
Fabien Castan
4f1e003260
Merge pull request #2719 from alicevision/fix/psutilFlag
[desc] Import `CREATE_NEW_PROCESS_GROUP` flag from `subprocess`
2025-05-05 18:51:28 +02:00
Candice Bentéjac
d096fa4a90 [desc] Import CREATE_NEW_PROCESS_GROUP flag from subprocess
`psutil` does not contain these creation flags but supports
`subprocess`'s, so the one from `subprocess` needs to be used in order
for the process to be created properly.
2025-05-05 17:08:58 +02:00
Fabien Castan
1d4ba577a9 Apply flynt to use f-strings 2025-04-30 19:13:53 +02:00
Candice Bentéjac
f8567fb98f [desc] Node: Clean-up code 2025-04-28 18:24:58 +02:00
Candice Bentéjac
081d38f78d Stop using bare except statements 2025-04-28 17:28:10 +02:00
Fabien Castan
008d6c75ee Automatically save the project when computing or submitting to renderfarm
If the project is not saved at all, it will suggest to save it manually
or to define a project in a temporary folder using date/time for the
project name.
2025-04-13 13:09:24 +02:00
Fabien Castan
4c7ff6eb1a [core] remove duplicated function from BaseNode 2025-03-26 11:29:09 +00:00
Fabien Castan
eb9df4c900 Explicit meshroom node type in status file
Avoid an ambiguous LOCAL_ISOLATED, as a process can be extern and using
an isolated execution environement.
2025-03-25 12:28:22 +01:00
Fabien Castan
727a4d129b New notion of local isolated computation for python nodes using meshroom_compute
Reoganization
- BaseNode: is the base class for all nodes
- Node: is now dedicated to python nodes, with the implentation directly
in the process function
- CommandLineNode: dedicated to generate and run external command lines
2025-03-24 17:59:19 +01:00
Fabien Castan
3f69724788 Add some typing and str format 2025-03-24 00:07:58 +01:00
Candice Bentéjac
23901c502b [desc] Remove internalFolder in desc.Node
This is fully replaced with `{nodeCacheFolder}`.
2025-03-05 13:36:32 +00:00
Candice Bentéjac
40fd46d476 [core] Node: Add a sourceCodeFolder property
This property stores the location of the source code for a given node
and is not exposed to the QML side.
2025-03-05 13:26:53 +00:00
Yann Lanthony
90acb93ea8 [core] Trigger node desc creation callback only for explicit node creation
The desc.Node.onCreated callback is a hook in the Node API for developers to
write custom behavior on a node first initialization.
By being called in the core.Node constructor, this was triggered in several situations
that don't match this idea and with unpredictable side effects (graph loading, node re-creation on undo...).

* Make `onNodeCreated` callback an explicit method on desc.Node.
* Remove the call to node descriptor's `onNodeCreated` callback outside core.Node constructor.
* Trigger this callback on explicit node creation (adding new node to graph, init a graph from a template).
2025-02-14 11:42:22 +01:00
Yann Lanthony
82e6f65ea7 [core] Update desc.node 2024-10-30 18:41:43 +01:00
Yann Lanthony
4055d25e72 [core] Split desc.node 2024-10-30 18:41:11 +01:00
Renamed from meshroom/core/desc.py (Browse further)