[PyMOL] running script on startup

2009-02-20 Thread Martin Höfling
Hey folks, I am trying to fire up a script with pymol -r doit.pml PyMOLrun doit.pml,main Traceback (most recent call last): File /sw/lib/pymol-py25/modules/pymol/parser.py, line 334, in parse parsing .run_file(exp_path(layer.args[0]),__main__.__dict__,__main__.__dict__) File

Re: [PyMOL] running script on startup

2009-02-20 Thread Pete Meyer
I am trying to fire up a script with pymol -r doit.pml pymol doit.pml should be sufficient (no need for -r). File doit.pml, line 2 select resname SOL Unless the syntax has changed, try 'select resname, SOL'. Does this script work when run from an already started pymol? Pete

Re: [PyMOL] running script on startup

2009-02-20 Thread Warren DeLano
Martin, -r is for running Python programs in the __main__ namespace. For PyMOL command scripts, simply: pymol doit.pml Cheers, Warren -Original Message- From: Martin Höfling [mailto:martin.hoefl...@gmx.de] Sent: Friday, February 20, 2009 8:50 AM To:

Re: [PyMOL] running script on startup

2009-02-20 Thread Martin Höfling
Am 20.02.2009 um 17:54 schrieb Pete Meyer: I am trying to fire up a script with pymol -r doit.pml pymol doit.pml should be sufficient (no need for -r). Oh ok, without -r it works :-) Best Martin