[chimerax-users] passing arguments to python scripts with command runscript
Eric Pettersen
pett at cgl.ucsf.edu
Wed Apr 15 13:19:05 PDT 2020
Hi Philipp,
In ChimeraX, the arguments will be in sys.argv — namely sys.argv[1:] since sys.argv[0] will be the name of your script file.
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
> On Apr 15, 2020, at 12:47 PM, Philipp Milkereit <philipp.milkereit at vkl.uni-regensburg.de> wrote:
>
> Dear all,
>
> in Chimera 1 it was possible to pass arguments with runscript to python scripts which could be read out there by arguments[index]. In ChimeraX I am not anymore able to read passed values using arguments[index] in python scripts called by runscript. Was that feature dismissed or was there a change in the naming?
>
> Thanks for your help,
>
> Philipp
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu <mailto:ChimeraX-users at cgl.ucsf.edu>
> Manage subscription:
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20200415/c907aaec/attachment-0001.html>
More information about the ChimeraX-users
mailing list