Is it possible to set command line flags for an executable in src blocks? I was thinking of something like this
#+BEGIN_SRC python :flags --some_flag=True :tangle test.py
import app
print(app.FLAGS.some_flag) # -> True
#+END_SRC
which would be equivalent to running:
> python --some_flag=True test.py
Thanks,
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803