Hi Pedro,
There is a command logging option:
From the menu: File > Log File > Open...
Or use the "log_open" command:
https://pymol.org/d/command:log_open
Decorating cmd.create like you suggested also works, but you need to update the
command language as well:
cmd.keyword['create'][0] = cmd.create
Cheers,
Thomas
> On Feb 22, 2019, at 12:27 AM, Pedro Lacerda wrote:
>
> Hi,
>
> I want to show executed commands when right before they run, so I can track
> my script execution.
>
> Something like the following for all the commands:
>
> orig_create = cmd.create
> def create(*args, **kwargs):
> print('create', repr(args), repr(kwargs))
> orig_create(*args, **kwargs)
> cmd.create = create
>
>
> I also want it to figure out what commands some GUI actions really do. Like
> those in presets and so on.
>
> There is some verbose option that does it?
>
> Thank you,
> Pedro Lacerda
--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.
___
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe:
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe