Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@monchier
Copy link
Collaborator

@monchier monchier commented Dec 13, 2019

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 PYTHONPATH as well. For consistency, we also enable hashing for the same modules in the PYTHONPATH.

Issue: #805

@monchier monchier requested a review from a team as a code owner December 13, 2019 15:10
@monchier monchier added the WIP label Dec 13, 2019
@monchier monchier changed the title Add modules in PYTHONPATH to watched modules WIP: Add modules in PYTHONPATH to watched modules Dec 13, 2019
@monchier monchier removed the WIP label Dec 16, 2019
@monchier monchier changed the title WIP: Add modules in PYTHONPATH to watched modules Add modules in PYTHONPATH to watched modules Dec 16, 2019
@monchier monchier requested a review from tconkling December 17, 2019 18:30
Copy link
Contributor

@tconkling tconkling left a 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)
Copy link
Contributor

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?

Copy link
Collaborator Author

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...

@monchier monchier merged commit 7866bc8 into streamlit:develop Dec 19, 2019
@monchier monchier deleted the 805 branch December 19, 2019 13:29
@dwiel dwiel mentioned this pull request Jan 1, 2020
tconkling added a commit to tconkling/streamlit that referenced this pull request Jan 7, 2020
* 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)
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