SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
549 stars 124 forks source link

talkinghead inital.png path broken on Linux #198

Closed Technologicat closed 9 months ago

Technologicat commented 9 months ago

In talkinghead/tha3/app/app.py, there are two instances of:

full_path = os.path.join(os.getcwd(), os.path.normpath("talkinghead\\tha3\\images\\inital.png"))

which fails on Linux, because the path separator character is wrong.

The correct cross-platform way to do this is:

full_path = os.path.join(os.getcwd(), os.path.normpath(os.path.sep.join(["talkinghead", "tha3", "images", "inital.png"])))

Making that change, it works for me (Linux Mint 21.1).

Cohee1207 commented 9 months ago

Fixed, thanks.

Technologicat commented 9 months ago

That was fast! Thanks!