Hi Mikael,

As far as I'm aware that is not possible (and definitely not with
"run", see 'help run'). What you can do is to define a function in
test.py, which takes the arguments you want. Then, after running the
script you can use the function as you please. If, in addition, you
add to the end of the script a line like:

cmd.extent("test",test)

Provided that the function you defined is named "test" and you have
before imported the module "cmd" (from pymol import cmd), you can then
give statements on the pymol command line such as:

test myfile.pdb

Hope it helps,

Tsjerk

On 7/14/06, Mikael Hansen <sonnehan...@gmail.com> wrote:

Hi all,

is there a way to run Python scripts with options in PyMOL, e.g.

run test.py -i [PDB file name]

? When I naïvely run the above I get

no file 'test.py -i [PDB file name]' found.

Thanks,
Mikael Sonne Hansen

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users





--

Tsjerk A. Wassenaar, M.Sc.
Groningen Biomolecular Sciences and Biotechnology Institute (GBB)
Dept. of Biophysical Chemistry
University of Groningen
Nijenborgh 4
9747AG Groningen, The Netherlands
+31 50 363 4336

Reply via email to