Skip to content

Commit

Permalink
fix(futil): Replace deprecated distutils with shutil
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Dec 9, 2024
1 parent 85d827b commit 087e5b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ladybug/futil.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import shutil
import zipfile
import sys
from distutils import dir_util

if (sys.version_info < (3, 0)):
import urllib2
Expand Down Expand Up @@ -84,7 +83,7 @@ def nukedir(target_dir, rmdir=False):
os.rmdir(d)
except Exception:
try:
dir_util.remove_tree(d)
shutil.rmtree(d)
except Exception:
print("Failed to remove %s" % d)

Expand Down

0 comments on commit 087e5b9

Please sign in to comment.