[GH-ISSUE #198] talkinghead inital.png path broken on Linux #122

Closed
opened 2026-10-15 18:04:39 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @Technologicat on GitHub (Dec 13, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/198

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).

Originally created by @Technologicat on GitHub (Dec 13, 2023). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/198 In `talkinghead/tha3/app/app.py`, there are two instances of: ```python 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: ```python 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).
Author
Owner

@Cohee1207 commented on GitHub (Dec 13, 2023):

Fixed, thanks.

<!-- gh-comment-id:1854813035 --> @Cohee1207 commented on GitHub (Dec 13, 2023): Fixed, thanks.
Author
Owner

@Technologicat commented on GitHub (Dec 13, 2023):

That was fast! Thanks!

<!-- gh-comment-id:1854818607 --> @Technologicat commented on GitHub (Dec 13, 2023): That was fast! Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/SillyTavern-Extras#122
No description provided.