First of all, apologies for bombarding you with questions. I really do appreciate all the very useful responses.
While working on some macros I wanted to pass command line arguments to a macro.
How would I do that?
I tried sys.argv but while my macro can print the passed argument it is not interpreted correctly.
I am trying to use a macro where instead of editing a macro and putting a line like:
pl = get(‘PL:MyPeaklist.1’)
I can pass ‘PL:MyPeaklist.1’ and define pl by passing a command line argument, e.g.
%run -i “C:/Users/jozef/.ccpn/macros/myMacro.py” PL:MyPeaklist.1
or even just
%run -i “C:/Users/jozef/.ccpn/macros/myMacro.py” MyPeaklist.1
Thanks,
Józef