Skip to content

Commit

Permalink
Use exist_ok instead of exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicu committed Oct 7, 2023
1 parent 7a7586c commit e83a750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def save_executables(data, base_dir):
output_path = path.join(base_dir, exe)
try:
# Python 3
makedirs(base_dir, exists=True)
makedirs(base_dir, exist_ok=True)
except TypeError:
# Python 2.7
makedirs(base_dir)
Expand Down

0 comments on commit e83a750

Please sign in to comment.