We are moving toward replacing the Python Connector with the Python API and our IDL files are also used with C++. In our case rtiddsgen for python creates invalid python code, for example, in this snippet there is a missing ‘)’ at the end of the line with ‘sys.path.append’ and we also get the general error “NameError: name 'sys' is not defined ”. Details are provided below, please advise.
sys.path.append(os.path.join(os.path.dirname(sys.path[0]), /Test_001/idls/foo/')