Update commandManager.py

This commit is contained in:
chrys87 2016-10-05 11:12:19 +02:00 committed by GitHub
parent 00af131493
commit 203266af18

View File

@ -29,7 +29,7 @@ class commandManager():
self.env['runtime']['commandManager'].shutdownCommands('onSwitchApplicationProfile')
def loadCommands(self, section='commands'):
commandFolder = "commands/" + section +"/"
commandFolder = os.path.dirname(os.path.realpath(__main__.__file__)) + "/commands/" + section +"/"
commandList = glob.glob(commandFolder+'*')
for command in commandList:
try: