Skip to content

Commit a302a7a

Browse files
PyProject toml fixed
1 parent 07d7c21 commit a302a7a

1 file changed

Lines changed: 1 addition & 25 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,4 @@ testpaths = [
4545
]
4646
pythonpath = [
4747
".",
48-
]
49-
```
50-
51-
#### Step 2: Fix Asset Paths in `pica/main.py`
52-
Since `main.py` is no longer in the root folder, it might not find the images (logos). Open `pica/main.py` and look for where `ASSET_PATH` or image paths are defined.
53-
54-
Replace hardcoded paths like `"assets/"` with this dynamic path code:
55-
56-
```python
57-
import os
58-
# Get the directory where this file resides (pica/)
59-
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
60-
# Build path to assets relative to this file
61-
ASSET_PATH = os.path.join(BASE_DIR, 'assets')
62-
```
63-
64-
#### Step 3: Install & Test
65-
Run these commands in your terminal to register the new package structure and test it:
66-
67-
```bash
68-
# 1. Install the package in "editable" mode
69-
pip install -e .
70-
71-
# 2. Run the new launcher shim
72-
python run_pica.py
48+
]

0 commit comments

Comments
 (0)