Skip to content

Commit

Permalink
Fix pipkin directory creation in paste mode (e.g. package installatio…
Browse files Browse the repository at this point in the history
…n via WebREPL)
  • Loading branch information
aivarannamaa committed Jun 2, 2023
1 parent fb78031 commit 18106ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Version history
* Update several translations
* Add en_GB translation
* Attempt to overcome "window was deleted before its visibility changed" error
* Fix pipkin directory creation in paste mode (e.g. package installation via WebREPL)


4.1.0b1 (2023-04-23)
Expand Down
4 changes: 2 additions & 2 deletions thonny/vendored_libs/pipkin/bare_metal.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def remove_file_if_exists(self, path: str) -> None:
dedent(
f"""
try:
__pipkin_helper.os.stat({path!r})
__pipkin_helper.os.stat({path!r}) and None
except __pipkin_helper.builtins.OSError:
pass
else:
Expand All @@ -274,7 +274,7 @@ def mkdir_in_existing_parent_exists_ok(self, path: str) -> None:
dedent(
f"""
try:
__pipkin_helper.os.stat({path!r})
__pipkin_helper.os.stat({path!r}) and None
except __pipkin_helper.builtins.OSError:
__pipkin_helper.os.mkdir({path!r})
"""
Expand Down

0 comments on commit 18106ff

Please sign in to comment.