mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 06:29:54 -05:00
Update setup for accuracy
This commit is contained in:
parent
865083ad45
commit
c5fc5222f8
2
setup.py
2
setup.py
@ -41,7 +41,7 @@ if not os.path.exists(stockdir) or not os.path.isdir(stockdir):
|
|||||||
os.system("sudo mkdir " + stockdir)
|
os.system("sudo mkdir " + stockdir)
|
||||||
for pathname in os.listdir(modules_dir):
|
for pathname in os.listdir(modules_dir):
|
||||||
path = os.path.join(modules_dir, pathname)
|
path = os.path.join(modules_dir, pathname)
|
||||||
if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')):
|
if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')):
|
||||||
os.system("sudo mv " + path + " " + stockdir)
|
os.system("sudo mv " + path + " " + stockdir)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -91,5 +91,5 @@ def stock_modules_begone(bot):
|
|||||||
os.system("sudo mkdir " + stockdir)
|
os.system("sudo mkdir " + stockdir)
|
||||||
for pathname in os.listdir(modules_dir):
|
for pathname in os.listdir(modules_dir):
|
||||||
path = os.path.join(modules_dir, pathname)
|
path = os.path.join(modules_dir, pathname)
|
||||||
if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')):
|
if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')):
|
||||||
os.system("sudo mv " + path + " " + stockdir)
|
os.system("sudo mv " + path + " " + stockdir)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user