From fc84cb487c6278a2f920ac99ba45f4dcf422bd69 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 30 May 2019 22:57:47 -0400 Subject: [PATCH] tidy up --- sopel_modules/SpiceBot/Commands.py | 2 +- sopel_modules/SpiceBot/Tools.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot/Commands.py b/sopel_modules/SpiceBot/Commands.py index d163c6f..3bc8fdd 100644 --- a/sopel_modules/SpiceBot/Commands.py +++ b/sopel_modules/SpiceBot/Commands.py @@ -117,7 +117,7 @@ class BotCommands(): filepathlisting.append(modules_dir) # Home Directory - home_modules_dir = os.path.join(botconfig.config.homedir, 'modules') + home_modules_dir = os.path.join(botconfig.homedir, 'modules') if os.path.isdir(home_modules_dir): filepathlisting.append(home_modules_dir) diff --git a/sopel_modules/SpiceBot/Tools.py b/sopel_modules/SpiceBot/Tools.py index 8519ef7..1a9f94a 100644 --- a/sopel_modules/SpiceBot/Tools.py +++ b/sopel_modules/SpiceBot/Tools.py @@ -284,13 +284,13 @@ def spicebot_update(deps=False): logs.log('SpiceBot_Update', "Cloning to " + clonepath, True) - clone_repository(str(botconfig.config.config.SpiceBot_Update.gitrepo + ".git"), clonepath, checkout_branch=botconfig.config.config.SpiceBot_Update.gitbranch) + clone_repository(str(botconfig.SpiceBot_Update.gitrepo + ".git"), clonepath, checkout_branch=botconfig.SpiceBot_Update.gitbranch) pipcommand = "sudo pip3 install --upgrade" if not deps: pipcommand += " --no-deps" pipcommand += " --force-reinstall" - # pipcommand += " git+" + str(botconfig.config.config.SpiceBot_Update.gitrepo) + "@" + str(botconfig.config.config.SpiceBot_Update.gitbranch) + # pipcommand += " git+" + str(botconfig.SpiceBot_Update.gitrepo) + "@" + str(botconfig.SpiceBot_Update.gitbranch) pipcommand += " /tmp/SpiceBot/" logs.log('SpiceBot_Update', "Running `" + pipcommand + "`", True)