From 904e1e5c6ccd41d602161b65959d0e9bb6c2abb8 Mon Sep 17 00:00:00 2001 From: Lien Zhu <95384975+lienzhuzhu@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:45:58 -0600 Subject: [PATCH] Corrects plugin/ removal in rename.py --- rename.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rename.py b/rename.py index ecd2c14..e401462 100644 --- a/rename.py +++ b/rename.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: UTF-8 -*- -import os, sys +import os, sys, shutil pdir = os.getcwd() # ANSI color codes @@ -42,7 +42,7 @@ for dir in os.listdir(pdir): choice = input("Do you need plugin folder in your plugin (y|n): ") if choice.lower() == 'n': - os.remove(os.path.join(os.getcwd(), 'plugin')) + shutil.rmtree(os.path.join(os.getcwd(), 'plugin')) choice = input("Do you want also remove example code in init.lua and test (y|n): ") if choice.lower() == 'y':