Skip to content

Commit

Permalink
fix: incorrect reversion of insertion in sys.path when registering a …
Browse files Browse the repository at this point in the history
…model
  • Loading branch information
paulmueller committed Mar 25, 2024
1 parent 258b4f9 commit b1f6b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
4.1.1
- fix: incorrect reversion of insertion in sys.path when registering a model
4.1.0
- ref: move to "src"-rooted source tree
- ref: move iterative `sneddon_spher` model to separate package which
Expand Down
2 changes: 1 addition & 1 deletion src/nanite/model/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def load_model_from_file(path, register=False):
raise ModelImportError(f"Could not import '{path}'!")
finally:
# undo our path insertion
sys.path.pop(0)
sys.path.remove(str(path.parent))
sys.dont_write_bytecode = False

mod = NaniteFitModel(module)
Expand Down

0 comments on commit b1f6b9d

Please sign in to comment.