Hi Chris,

put something like this in your ~/.pymolrc.py script:

from pymol import cmd
def customload(*args, **kwargs):
    print "do stuff"
cmd.load = customload
cmd.extend('load', cmd.load)

Make sure your customload function doesn't call cmd.load itself, but rather 
pymol.importing.load if you need to.

Cheers,
  Thomas

On Oct 16, 2013, at 2:56 AM, Christoffer Norn <ch.n...@gmail.com> wrote:

> Hi all,
> I've written a script to load pdbs with extra information. Now I would like 
> this script to used instead of the standard load command when I double-click 
> pdb files. How would I go about doing this?
> Thanks,
> Chris

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to