iamDyeus / iamDyeus/tkreload

[BUG] Auto-reload Fails When Script Is Run Outside Its Directory

Open
#23 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
35
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Auto-reloading does not function properly if the application is run from a directory other than the one containing the script.

**Steps to Reproduce:**
1. Run a Tkinter application using `tkreload example/sample_app.py` from a directory outside `example`.
- **Result:** The application launches successfully, and manual reload works, but auto-reload does not.
2. Change to the script's directory (`cd example`) and run `tkreload sample_app.py`.
- **Result:** Auto-reload works as expected.

**Expected Behavior:**
Auto-reloading should work regardless of the current working directory when the script is executed.

**Actual Behavior:**
Auto-reload only works if the script is run from its containing directory.

This issue may be related to how file paths are resolved during auto-reload.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.