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 <michaelmorgan...@gmail.com> wrote: > > 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 to pass arguments? > > Thank you vey much. > Michael > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net > Unsubscribe: > https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. _______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe