better precision logic

This commit is contained in:
deathbybandaid 2019-05-08 12:49:16 -04:00
parent c0a065bcb7
commit a2f88fa905

View File

@ -335,7 +335,7 @@ def stock_modules_begone(bot):
pypi_modules_dir = os.path.join(plugin_dir, pathname)
if "SpiceBot_dummycommand.py" in os.listdir(pypi_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):
path = os.path.join(modules_dir, pathname)
if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')):