Skip to content

Fix data directory creation when epub is in different directory#16

Open
mmynk wants to merge 2 commits into
karpathy:masterfrom
mmynk:master
Open

Fix data directory creation when epub is in different directory#16
mmynk wants to merge 2 commits into
karpathy:masterfrom
mmynk:master

Conversation

@mmynk

@mmynk mmynk commented Dec 15, 2025

Copy link
Copy Markdown

When running reader3.py with an epub file from a different directory, the data directory was created relative to the epub file's location instead of the current working directory where the server expects it. This caused the server to show no content.

Now creates the data directory in pwd to fix the issue regardless of wherever the epub file is located.

When running reader3.py with an epub file from a different directory,
the data directory was created relative to the epub file's location
instead of the current working directory where the server expects it.
This caused the server to show no content.

Now creates the data directory in pwd to fix the issue
regardless of wherever the epub file is located.
@mmynk

mmynk commented Jan 12, 2026

Copy link
Copy Markdown
Author

@karpathy please merge if you think this adds any value. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant