Skip to content

Commit 51cbb28

Browse files
authored
Merge pull request #3 from lienzhuzhu/main
Corrects plugin/ removal in rename.py
2 parents acfc1b8 + 904e1e5 commit 51cbb28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rename.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
22
# -*- coding: UTF-8 -*-
33

4-
import os, sys
4+
import os, sys, shutil
55
pdir = os.getcwd()
66

77
# ANSI color codes
@@ -42,7 +42,7 @@ def print_colored(message, color):
4242

4343
choice = input("Do you need plugin folder in your plugin (y|n): ")
4444
if choice.lower() == 'n':
45-
os.remove(os.path.join(os.getcwd(), 'plugin'))
45+
shutil.rmtree(os.path.join(os.getcwd(), 'plugin'))
4646

4747
choice = input("Do you want also remove example code in init.lua and test (y|n): ")
4848
if choice.lower() == 'y':

0 commit comments

Comments
 (0)