Auto-reloading does not function properly if the application is run from a directory other than the one containing the script.
Steps to Reproduce:
- 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.
- 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.
Auto-reloading does not function properly if the application is run from a directory other than the one containing the script.
Steps to Reproduce:
tkreload example/sample_app.pyfrom a directory outsideexample.cd example) and runtkreload sample_app.py.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.