Skip to content

Commit

Permalink
Apparently these dirs don't have to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
csm10495 committed Sep 15, 2023
1 parent fcd24db commit d1f75de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ def test_customization_modules_on_startup(self):
if not isinstance(base_path, str):
base_path = base_path[0]

os.makedirs(base_path, exist_ok=True)

customize_path = os.path.join(base_path, f'{module_name}.py')
if os.path.exists(customize_path):
# backup old sitecustomize.py
Expand Down

0 comments on commit d1f75de

Please sign in to comment.