Changes between Version 2 and Version 3 of Ticket #1380, comment 2


Ignore:
Timestamp:
Nov 1, 2018, 1:08:36 PM (7 years ago)
Author:
Greg Couch

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1380, comment 2

    v2 v3  
    22{{{
    33func = chimerax.core.commands.command_function("save")
    4 print('%s.%s' % (func.!__module__, func.!__qualname__))
     4print('%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).