#658·IOPaint

[BUG] Directory path in backend startup wrong? (windows)

Author: kklockerCreated Jun 3, 2025Updated Jun 3, 2025
Labelsbug

Model not relevant

Describe the bug Starting the python backend as in the readme with python .\main.py start --model lama --port 8080 results in "Directory not found".

I noticed that the path resolving to the web app did not actually point to the web app

Screenshots

The error: Image

Some modification i did to api.py (notice I added an extra .parent) Image

The output -- notice that the web app directory path now points to the actual web app

Current file path:  C:\Users\karll\projects\IOPaint\iopaint\api.py
Current directory:  C:\Users\karll\projects\IOPaint
Web app directory:  C:\Users\karll\projects\IOPaint\web_app

System Info Software version used

  • iopaint: git reflog 61a759f
  • pytorch: irrelevant
  • CUDA: irrelevant

OS: Windows, might be something special here?