set custom command path to emtpy; load customs after defaults

This commit is contained in:
chrys
2017-07-01 22:54:31 +02:00
parent 02b1668815
commit 099aa2da0d
4 changed files with 8 additions and 7 deletions

View File

@ -18,9 +18,10 @@ class commandManager():
self.env['commands'] = {}
self.env['commandsIgnore'] = {}
for commandFolder in self.env['general']['commandFolderList']:
self.env['runtime']['commandManager'].loadCommands(commandFolder,
self.env['runtime']['settingsManager'].getSetting('general', 'commandPath'))
self.env['runtime']['commandManager'].loadCommands(commandFolder)
self.env['runtime']['commandManager'].loadCommands(commandFolder)
if self.env['runtime']['settingsManager'].getSetting('general', 'commandPath') != '':
self.env['runtime']['commandManager'].loadCommands(commandFolder,
self.env['runtime']['settingsManager'].getSetting('general', 'commandPath'))
# scripts for scriptKey
self.env['runtime']['commandManager'].loadScriptCommands()