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

Update hot reloading logic in execute_module.py #116

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

richard-to
Copy link
Collaborator

This change separates the hot reloading logic for the mesop module and external app modules.

Before this fix, if the app module is outside of the mesop module, then changes to code in labs would not be reflected in the hot reload since the mesop directory is not also the app module.

@wwwillchen
Copy link
Collaborator

Thanks for the fix. LGTM, but could you add a test case to

def test_get_app_modules():
?

@wwwillchen wwwillchen self-assigned this Apr 18, 2024
This change separates the hot reloading logic for the mesop module and external app modules.

Before this fix, if the app module is outside of the mesop module, then changes to code in labs would not be reflected in the hot reload.
@richard-to
Copy link
Collaborator Author

Thanks for the fix. LGTM, but could you add a test case to

def test_get_app_modules():

?

Sure thing. Added a test.

@richard-to richard-to merged commit 96ac039 into google:main Apr 18, 2024
3 checks passed
wwwillchen pushed a commit to wwwillchen/mesop that referenced this pull request Apr 23, 2024
This change separates the hot reloading logic for the mesop module and external app modules.

Before this fix, if the app module is outside of the mesop module, then changes to code in labs would not be reflected in the hot reload.
@richard-to richard-to deleted the hotreload-fix branch May 4, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants