Files
speckle_automate-mesh_densi…/run.py
T
Jonathon Broughton 1e8dc4dfe5
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
Refactor function input schema generation and execution
- Update the command to generate the function input schema in `.github/workflows/main.yml`
- Add a new file `run.py` for executing the automate function
- Move the automate function execution code from `src/main.py` to `run.py`

These changes improve the organization and separation of concerns in the codebase.
2024-08-04 15:36:48 +01:00

14 lines
419 B
Python

from speckle_automate import execute_automate_function
import sys
from pathlib import Path
# Add src to the sys.path
src_path = Path(__file__).resolve().parent / 'src'
sys.path.append(str(src_path))
from src.main import automate_function, FunctionInputs
if __name__ == "__main__":
# Entry point: Execute the automate function with defined inputs.
execute_automate_function(automate_function, FunctionInputs)