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

Managecogs does not reload dependent packages #146

Open
49Indium opened this issue Aug 4, 2023 · 1 comment
Open

Managecogs does not reload dependent packages #146

49Indium opened this issue Aug 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@49Indium
Copy link
Member

49Indium commented Aug 4, 2023

If a non-cog file (e.g. utils\uq_course_utils.py) is modified, reloading cogs dependent on that file will not reload the file.

@49Indium 49Indium added the bug Something isn't working label Aug 4, 2023
@andrewj-brown
Copy link
Member

The way this will work is through importlib (https://docs.python.org/3/library/importlib.html).

Might require some grim hacks in order to figure out what modules/files are imported by a cog without storing a 2nd source-of-truth (i.e. regex for "import" lines).

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

2 participants