Skip to content

Commit aee16e6

Browse files
committed
Build fix
1 parent 81690b4 commit aee16e6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

build.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@
117117
src = os.path.join(format_path, plugin_filename);
118118
dst = os.path.join(target_dir, plugin_filename);
119119
if os.path.isdir(src):
120-
shutil.rmtree(dst)
120+
if os.path.exists(dst):
121+
shutil.rmtree(dst)
121122
shutil.copytree(src, dst)
122123
else:
123-
os.remove(dst)
124+
if os.path.exists(dst):
125+
os.remove(dst)
124126
shutil.copy2(src, dst)

0 commit comments

Comments
 (0)