Skip to content

Commit

Permalink
Merge pull request #117 from acsone/fix-114
Browse files Browse the repository at this point in the history
Fix FileNotFoundError in setuptools-odoo-makedefault
  • Loading branch information
sbidoul authored Sep 30, 2023
2 parents 596f023 + e3d0ca1 commit db2567d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/116.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``FileNotFoundError`` regression in ``setuptools-odoo-make-default``.
2 changes: 1 addition & 1 deletion setuptools_odoo/make_default_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def clean_setup_addons_dir(addons_dir, odoo_version_override):
for p in paths_to_remove:
if os.path.isdir(p):
shutil.rmtree(p)
else:
elif os.path.exists(p):
os.unlink(p)


Expand Down

0 comments on commit db2567d

Please sign in to comment.