Merge pull request #3 from lienzhuzhu/main

Corrects plugin/ removal in rename.py
This commit is contained in:
glepnir 2024-12-16 13:08:55 +08:00 committed by GitHub
commit 51cbb2853e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
import os, sys import os, sys, shutil
pdir = os.getcwd() pdir = os.getcwd()
# ANSI color codes # 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): ") choice = input("Do you need plugin folder in your plugin (y|n): ")
if choice.lower() == '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): ") choice = input("Do you want also remove example code in init.lua and test (y|n): ")
if choice.lower() == 'y': if choice.lower() == 'y':