Skip to content

Commit

Permalink
fix: Fix creation algorithm for Python v3.8 <
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 14, 2020
1 parent 5e557dd commit 67bc80f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions aslo4/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,14 +816,12 @@ def unpack_static(self, extract_dir):
ignore_dangling_symlinks=True,
dirs_exist_ok=True)
else:
if os.path.exists(extract_dir):
print("Going to remove {}".format(extract_dir))
shutil.rmtree(extract_dir)
_dest_dir = os.path.join(extract_dir, i)
if os.path.exists(_dest_dir):
print("Going to remove {}".format(_dest_dir))
shutil.rmtree(_dest_dir)
shutil.copytree(
_dir,
os.path.join(
extract_dir,
i),
_dir, _dest_dir
symlinks=True,
ignore_dangling_symlinks=True)

Expand Down

0 comments on commit 67bc80f

Please sign in to comment.