Merge pull request #30 from SpiceBot/development

Development
This commit is contained in:
Deathbybandaid 2019-05-05 13:29:44 -04:00 committed by GitHub
commit 6a87e2c5b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ if not os.path.exists(stockdir) or not os.path.isdir(stockdir):
os.system("sudo mkdir " + stockdir)
for pathname in os.listdir(modules_dir):
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)

View File

@ -15,6 +15,7 @@ def configure(config):
def setup(bot):
# TODO add custom pretrigger events
bot_logging(bot, 'Sopel_BotEvents', "Starting Module Events Logging")
threading.Thread(target=setup_thread, args=(bot,)).start()

View File

@ -91,5 +91,5 @@ def stock_modules_begone(bot):
os.system("sudo mkdir " + stockdir)
for pathname in os.listdir(modules_dir):
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)