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

allow overriding the default monitor via env var #29

Merged
merged 2 commits into from
May 2, 2018

Conversation

mmerickel
Copy link
Member

An alternative would be to support setuptools entry points to make this slightly safer than loading arbitrary python code from an environment variable. How much of a concern is this? I wanted to avoid statically defining 'watchdog' and 'poll' as hard-coded strings so I left it as a dotted python path. Entry points would be the flexible way to avoid hard coding strings.

@digitalresistor
Copy link
Member

I am not sure it is a huge security concern... just not sure if it is good API. The reloader in werkzeug just has a static list IIRC.

@mmerickel
Copy link
Member Author

I'm fairly against static lists in general but I also don't care about this all that much other than as a hook to turn off watchdog if desired.

@digitalresistor
Copy link
Member

I'm a +1 on this change then. I don't see any issues and it allows you to effectively override as necessary.

@mmerickel mmerickel merged commit bd60103 into master May 2, 2018
@mmerickel mmerickel deleted the override-monitor branch May 2, 2018 02:19
mmerickel added a commit that referenced this pull request May 2, 2018
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