From 92ee19d64328eb2b61ec1039a458734fb8204f65 Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Thu, 24 Nov 2022 19:38:45 +0800 Subject: [PATCH] Refactor imports --- update_plugins.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/update_plugins.py b/update_plugins.py index ad5c9096..b5591cc6 100644 --- a/update_plugins.py +++ b/update_plugins.py @@ -13,7 +13,6 @@ import urllib.request import zipfile from io import BytesIO from os import path -from shutil import copytree # --- Globals ---------------------------------------------- PLUGINS = """ @@ -107,7 +106,7 @@ if __name__ == "__main__": temp_directory = tempfile.mkdtemp() if not path.isdir(SOURCE_DIR): - copytree(FALLBACK_SOURCE_DIR, SOURCE_DIR) + shutil.copytree(FALLBACK_SOURCE_DIR, SOURCE_DIR) try: if futures: