-
Notifications
You must be signed in to change notification settings - Fork 4k
Add modules in PYTHONPATH to watched modules #845
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
Conversation
tconkling
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I left some nitpicky performance-related comments that you should feel free to disagree with :)
| os.path.abspath(path) for path in pythonpath.split(os.pathsep) | ||
| ] | ||
| return any( | ||
| file_is_in_folder_glob(os.path.normpath(filepath), path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this use file_is_in_folder_glob? Does filepath ever have glob syntax?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I basically just reusing...
* develop: @st.cache: do not support arbitrary keyword args. (streamlit#915) Change copyright from 2019 to 2020 (streamlit#924) Update getting_started.md (streamlit#919) Make all doc URLs point to docs.streamlit.io (new domain) (streamlit#918) Update main_concepts.md (streamlit#917) Fix doc selectbox (streamlit#908) Bump handlebars from 4.2.0 to 4.5.3 in /frontend (streamlit#901) Fix how st.write docs render in Sphinx (streamlit#891) Fix streamlit#875: frontend error saying "Bad message format - Tried to use SessionInfo before it was initialized" (streamlit#889) Auto-reload page if Streamlit server version ≠ frontend version (streamlit#874) File uploader unit tests (streamlit#880) Release 0.52.0 (streamlit#849) Fixing min max behavior (streamlit#876) FullScreenWrapper HOC (streamlit#858) Add modules in PYTHONPATH to watched modules (streamlit#845) Update the Cached Object Mutated warning (streamlit#839) test:coverage script (streamlit#847) add new tests for add_rows method with set_index in dataframes (streamlit#851) add_rows support no index column (streamlit#795)
We currently limit the modules we watch to modules contained in the current directory. This PR extends the watched modules to modules contained in the
PYTHONPATHas well. For consistency, we also enable hashing for the same modules in thePYTHONPATH.Issue: #805