Re: [PyMOL] PyMOL script with a parameter ?

2013-02-22 Thread Matthew Baumgartner
Hi Tim, You can use two dashes on the command line, like: pymol -r get_neighbors.py -- ALA And then access them using sys.argv in your script. For example: save the following as tmp_pymol.py and run: 'pymol -r tmp_pymol.py -- ALA' ( without quotes) from pymol import cmd import sys def

[PyMOL] PyMOL script with a parameter ?

2013-02-22 Thread Someone Else
Hi everyone, I would like my PyMOL script take a command line parameters, e.g: pymol get_neighbors.py ALA How to extract "ALA" from inside my neighbors.py? Best regards, Tim -- Everyone hates slow websites. So do we. Ma