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
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