On 26.01.2018 16:20, Liam Herron wrote: > > So I have a boost python extension C++ library. I would like to > access the “python commandline” in C++ without having to pass in the > “sys.argv” into my C++ extension. > > Is there a way to do this? Include some boost python header and read > it from some init variables or something? >
You don't have to pass `sys.argv` as an argument. You can inspect it from wherever you need it. Just import `sys` and inspect the elements of `sys.argv`, just as you would do in Python. Stefan -- ...ich hab' noch einen Koffer in Berlin...
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig