you may want to check out the Popen class from the subprocess module...
hth
Martin

On 23.08.11 10:48, Troels Emtekær Linnet wrote:
Hi.

If one writes a pymol script, and calls an external function, the pymol script continues its operation before waiting for the "success" of the external function.

Is it possible to give a keyword, so it "waits" for the external function before preceding?

Kind of the same function with:
fetch 1hp1, async=0

Best
Troels
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ 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