Re: [PyMOL] Running scripts with the '@' command

2010-03-16 Thread Markus Wiederstein
Jason, many thanks for your quick response! The example you sent worked; I will try to rewrite our scripts as Python commands and embed them in python blocks... Thanks again, and have a nice weekend, -Markus On Mit, 10 Mär 2010, Jason Vertrees wrote: Markus, PyMOL is a multithreaded

[PyMOL] Running scripts with the '@' command

2010-03-10 Thread Markus Wiederstein
Hi, starting PyMOL with the '-p' option to let it accept input from stdin is a convenient way to trigger it from external programs. However, it seems that one can run into synchronization problems when this is combined with the '@' command for running scripts. For example, the following setup

Re: [PyMOL] Running scripts with the '@' command

2010-03-10 Thread Jason Vertrees
Markus, PyMOL is a multithreaded application and it'll accept input from the two locations asynchronously. Sync works until the next command is done--so, a script, a series of single commands will not do. Embed your scripts inside python blocks: # your_script.py python cmd.fetch(1rsy)