# Python Example - Implementation Notes (Epic 3)

## DLL Loading Configuration

**IMPORTANT:** When implementing the Python example (fex_viewer.py), ensure DLL loading uses:

```python
import ctypes
import os

# Relative path from examples/python/ to SDK bin directory
dll_path = os.path.join(os.path.dirname(__file__), "..", "..", "bin", "Win64", "FEX.Core.dll")
dll = ctypes.CDLL(dll_path)
```

## Key Requirements (Story 6.3, AC-4):
- ✅ DLL name: **FEX.Core.dll** (NOT ImageDLL.dll)
- ✅ Relative path: `../../bin/Win64/FEX.Core.dll`
- ✅ Use ctypes.CDLL for loading
- ✅ No hardcoded absolute paths
- ✅ No references to "ImageDLL.dll" in code or comments

## Files Expected by Story 6.6:
- fex_viewer.py (main application)
- requirements.txt (Python dependencies)
- README.md (setup and usage instructions)

## Testing Checklist:
1. Verify DLL loads successfully from relative path
2. Confirm FEX.Core.dll found at ../../bin/Win64/FEX.Core.dll
3. Test with Python 3.12+
4. Validate error handling if DLL not found
