mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
tidy up
This commit is contained in:
parent
7657feb0e5
commit
fc84cb487c
@ -117,7 +117,7 @@ class BotCommands():
|
|||||||
filepathlisting.append(modules_dir)
|
filepathlisting.append(modules_dir)
|
||||||
|
|
||||||
# Home Directory
|
# 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):
|
if os.path.isdir(home_modules_dir):
|
||||||
filepathlisting.append(home_modules_dir)
|
filepathlisting.append(home_modules_dir)
|
||||||
|
|
||||||
|
|||||||
@ -284,13 +284,13 @@ def spicebot_update(deps=False):
|
|||||||
|
|
||||||
logs.log('SpiceBot_Update', "Cloning to " + clonepath, True)
|
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"
|
pipcommand = "sudo pip3 install --upgrade"
|
||||||
if not deps:
|
if not deps:
|
||||||
pipcommand += " --no-deps"
|
pipcommand += " --no-deps"
|
||||||
pipcommand += " --force-reinstall"
|
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/"
|
pipcommand += " /tmp/SpiceBot/"
|
||||||
|
|
||||||
logs.log('SpiceBot_Update', "Running `" + pipcommand + "`", True)
|
logs.log('SpiceBot_Update', "Running `" + pipcommand + "`", True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user