sdk-python
sdk-python copied to clipboard
fix(README): replace relative imports with absolute imports in quicks…
The quickstart examples used relative imports (e.g., from .activities) which fail when scripts are run directly with the error "attempted relative import with no known parent package".
What was changed
Changed relative imports to absolute imports README
Why?
Relative imports fail when Python scripts are executed directly (e.g., python run_worker.py) because Python doesn't recognize the script as part of a package. Using absolute imports allows the scripts to be run directly without import errors.
Checklist
-
Closes
-
How was this tested:
- Ran
python run_worker.pyand verified it no longer throwsImportError: attempted relative import with no known parent package - Verified imports work correctly when running the script directly
- Ran
-
Any docs updates needed? No docs updates needed.