- refactored some of the code in the App class and created a new Tcl Command named Help

This commit is contained in:
Marius Stanciu
2020-04-22 23:00:54 +03:00
committed by Marius
parent 66d9ddd402
commit a1499158c2
10 changed files with 551 additions and 459 deletions

View File

@@ -93,6 +93,7 @@ def register_all_commands(app, commands):
tcl_modules = {k: v for k, v in list(sys.modules.items()) if k.startswith('tclCommands.TclCommand')}
for key, mod in list(tcl_modules.items()):
print(key)
if key != 'tclCommands.TclCommand':
class_name = key.split('.')[1]
class_type = getattr(mod, class_name)