mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 14:10:58 -05:00
better precision logic
This commit is contained in:
parent
c0a065bcb7
commit
a2f88fa905
@ -335,7 +335,7 @@ def stock_modules_begone(bot):
|
|||||||
pypi_modules_dir = os.path.join(plugin_dir, pathname)
|
pypi_modules_dir = os.path.join(plugin_dir, pathname)
|
||||||
if "SpiceBot_dummycommand.py" in os.listdir(pypi_modules_dir):
|
if "SpiceBot_dummycommand.py" in os.listdir(pypi_modules_dir):
|
||||||
if "SpiceBot_dummycommand.py" not in os.listdir(modules_dir):
|
if "SpiceBot_dummycommand.py" not in os.listdir(modules_dir):
|
||||||
os.system("sudo cp " + os.path.join(pypi_modules_dir, "SpiceBot_dummycommand.py") + " " + modules_dir)
|
os.system("sudo cp " + os.path.join(pypi_modules_dir, "SpiceBot_dummycommand.py") + " " + os.path.join(modules_dir, "SpiceBot_dummycommand.py"))
|
||||||
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 pathname.endswith('.py') and not pathname.startswith('_')):
|
if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user