Skip to content

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

@iamDyeus

Description

@iamDyeus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions