A command line calling a python program looks something like:
$ python [python_options] myprogram.py [args]
I know I can access args (sys.argv), but how do I to access python_options?
I don't use python_options a lot, but sometimes it's useful, e.g. -u (unbuffered output) or -3 (check for python3 incompatibilities).
To be precise, I want to create a subprocess which is another python program, and I want to pass it the same python_options. (I know about sys.flags, but that's not what I want. I don't want the values of the flags; I want the actual string used in the command line which sets those flags).