py_canoe.core.configuration.Configuration
The Configuration object represents the active configuration.
Source code in src\py_canoe\core\configuration.py
39 40 41 42 43 44 45 46 47 48 49 | |
get_compilation_result()
Get CAPL compilation result with error details.
Compiles all CAPL code in the current configuration and returns detailed result including success status and error information.
| Returns: |
|
|---|
Example
result = config.get_compilation_result() if result["success"]: ... print("Compilation OK") ... else: ... print(f"Compilation failed: {result['error']}")
Source code in src\py_canoe\core\configuration.py
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
run_compilation()
Run CAPL compilation and return success status.
Compiles all CAPL code in the current configuration. Use get_compilation_result() if you need error details.
| Returns: |
|
|---|
Example
if config.run_compilation(): ... print("Compilation OK")
Source code in src\py_canoe\core\configuration.py
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | |