Changes between Initial Version and Version 1 of Ticket #1380, comment 2


Ignore:
Timestamp:
Nov 1, 2018, 12:50:43 PM (7 years ago)
Author:
Greg Couch

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1380, comment 2

    initial v1  
    22
    33    func = chimerax.core.commands.command_function("save")
    4     print('%s.%s' % (func.__module__, func.__qualname__))
     4    print('%s.%s' % (func.!__module__, func.!__qualname__))
    55
    66But that function location might not match the supported location given in the documentation.  That is, the function location above is just a clue as to where the supported function is.  And, there is no public API to get the registered argument types for the function (the CmdDesc instance).  help(func) gives some information, but it may be incomplete (especially with the open and save commands where bundles can register additional keyword arguments for their file types).