SillyTavern / SillyTavern-Extras

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

talkinghead inital.png path broken on Linux #198

Closed Technologicat closed 11 months ago

Technologicat commented 11 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 11 months ago

Fixed, thanks.

Technologicat commented 11 months ago

That was fast! Thanks!