This commit is contained in:
deathbybandaid 2019-05-30 22:57:47 -04:00
parent 7657feb0e5
commit fc84cb487c
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)