modified has_cmdset to accept either a cmdset's python path or key

This commit is contained in:
Dan Feeney 2016-09-26 08:26:39 -05:00 committed by Griatch
parent d1c2c0f8d3
commit 78d422dd7a

View file

@ -553,7 +553,8 @@ class CmdSetHandler(object):
if must_be_default:
return self.cmdset_stack and self.cmdset_stack[0].key == cmdset_key
else:
return any([cmdset.key == cmdset_key for cmdset in self.cmdset_stack])
return any([cmdset.key == cmdset_key or cmdset.path == cmdset_key
for cmdset in self.cmdset_stack])
def reset(self):
"""