Re: [PyMOL] how to pass an argument to python in pymol

2020-12-01 Thread Thomas Holder
Hi Michael, You can use two dashes to separate your custom arguments. pymol -c myscript.py -- argument1 argument2 Cheers, Thomas > On Dec 1, 2020, at 8:45 AM, Michael Morgan wrote: > > I usually run "pymol -c myscript.py". Now I want to pass an argument to > myscript.py. > > Normally

[PyMOL] how to pass an argument to python in pymol

2020-11-30 Thread Michael Morgan
I usually run "pymol -c myscript.py". Now I want to pass an argument to myscript.py. Normally I can use "sys.argv" when run python script as "python myscript.py argument1 argument2 ...". But when I tried "pymol -c myscript.py argument1 argument2 ..." it did not work. So what's the correct way