Corrects plugin/ removal in rename.py

This commit is contained in:
Lien Zhu 2024-12-15 17:45:58 -06:00
parent acfc1b8d91
commit 904e1e5c6c
1 changed files with 2 additions and 2 deletions

View File

@ -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':