Skip to content

Commit

Permalink
Merge pull request #19 from agoose77/hotfix-clean-finder-cache
Browse files Browse the repository at this point in the history
Hotfix: clean finder cache
  • Loading branch information
agoose77 authored May 14, 2021
2 parents b7da012 + b92e530 commit c2354b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = literary
version = 1.8.1
version = 1.8.2
description = Literate package development with Jupyter
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
3 changes: 3 additions & 0 deletions src/literary/notebook/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def _inject_notebook_loader(
new_finder = _extend_file_finder(finder, (loader_factory, [".ipynb"]))
path_hooks[i] = new_finder

# To fix cached path finders
sys.path_importer_cache.clear()


def install_hook(
package_root_path: Union[AnyStr, os.PathLike], set_except_hook: bool = True
Expand Down

0 comments on commit c2354b6

Please sign in to comment.