Skip to content

Commit

Permalink
added check of dir existence before attempting to clear it
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederickDeny committed Mar 5, 2024
1 parent 99c895d commit f8761db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e4s_cl/cf/containers/barebones.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class BarebonesContainer(Container):
executable_name = ''

def __init__(self, *args, **kwargs):
empty_dir(Path(BAREBONES_LIBRARY_DIR))
if Path(BAREBONES_LIBRARY_DIR).is_dir():
empty_dir(Path(BAREBONES_LIBRARY_DIR))
super().__init__(*args, **kwargs)

def _working_dir(self):
Expand Down

0 comments on commit f8761db

Please sign in to comment.