Skip to content

Commit 9b6faef

Browse files
committed
Fix CLAP issue
1 parent 5f5935e commit 9b6faef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,7 @@
114114

115115
plugin_filename = name + extension;
116116
os.makedirs(target_dir, exist_ok=True)
117-
shutil.copytree(os.path.join(format_path, plugin_filename), os.path.join(target_dir, plugin_filename))
117+
if os.path.isdir(src):
118+
shutil.copytree(os.path.join(format_path, plugin_filename), os.path.join(target_dir, plugin_filename))
119+
else
120+
shutil.copy2(os.path.join(format_path, plugin_filename), os.path.join(target_dir, plugin_filename))

0 commit comments

Comments
 (0)