Corrects plugin/ removal in rename.py
This commit is contained in:
parent
acfc1b8d91
commit
904e1e5c6c
|
|
@ -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':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue