iliya iliev a écrit : > Hi again, > > trying to find my way trough the setup process with SWIG lead me to > this, in the SWIG_generator.py: > > try: > from pygccxml import declarations > from pyplusplus import module_builder > from pyplusplus.module_creator import sort_algorithms > from pyplusplus.module_builder import call_policies > HAVE_PYGCCXML = True > except ImportError: > HAVE_PYGCCXML = False > > in this situation the pyplusplus.module_builder is used either way and > HAVE_PYGCCXML is not used anywhere, so the whole try/except thing is > not working correctly. > > thanks again and regards, > Iliya Iliev > > You're right. I should add a sys.exit() statement when the ImportError exception is raised, as well as an information message such as 'pygccxml not installed'.
Thanks for the feedback, Thomas _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users