Hi, On Thu, Feb 1, 2018 at 8:47 AM, John Kitchin <jkitc...@andrew.cmu.edu> wrote: > 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
ob-python doesn't suport :flags nor :cmdline, but you can set interpreter with :python. So, you can do #+begin_src python :python "python --some_flag=True" to pass parameter to the interpreter. -- yashi