ROOT Version: 6.20/04
Platform: Linux Debian 10
Compiler: GCC 8.3.0-6 (?)
In Python 3 scripts, a call to ROOT.gInterpreter.AddIncludePath() seems to process sys.argv.
This can have unexpected behaviors. A small script reproduces the problem:
import argparse
import ROOTROOT.gInterpreter.AddIncludePath(“@ROOT_INCLUDE_DIR@”)
argparse.ArgumentParser().parse_args()
run with
python3 <test-script> -h
The ROOT usage text appears.
Is this exprected behavior? Is there some alternative way to add include paths in Python that won’t scan sys.argv?