1e8dc4dfe5
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
- 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.
14 lines
419 B
Python
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)
|