Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iamDyeus opened this issue Nov 19, 2024 · 0 comments
Open

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

iamDyeus opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@iamDyeus
Copy link
Owner

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.

@iamDyeus iamDyeus added the bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant