Commit 366c4ca
fix(examples): use os.path.join for object_detection.py path in llm_op (#1837)
The __main__ block of `examples/python-operator-dataflow/llm_op.py`
(a developer-mode entry point for exercising the operator directly,
distinct from the operator import path used by the dora dataflow)
built a path via string concatenation:
path = current_directory + "object_detection.py"
This produces `<dir>object_detection.py` with no separator, so
`python llm_op.py` would always fail to open the file unless it
happened to be in a directory whose name ended in a path separator.
Rescue of #1389 (RithamSharma) which identified the bug and the
correct fix (os.path.join). Reimplemented with PEP 8 spacing and
without the trailing debug comment so the example stays clean.
Co-authored-by: RithamSharma <RithamSharma@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2acf5da commit 366c4ca
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments