Code: Select all
sys.path.append("/usr/lib/freecad/lib")
import FreeCAD
import irrelevant_module
irrelevant_module.output_something()
Specifically, for some reason, if FreeCAD is imported (without having to do any operations, just importing the module alone), my (irrelevant) function does not print anything to the screen, even though it should. But if I comment the FreeCAD import, i.e.:
Code: Select all
sys.path.append("/usr/lib/freecad/lib")
#import FreeCAD
import irrelevant_module
irrelevant_module.output_something()
I am certain that irrelevant_module does not use anything FreeCAD-related, and could surely not be using the 'FreeCAD' term anywhere, but I am suspecting that perhaps FreeCAD disables console outputs in some way? print's do work though, so I'm not quite sure.
Note: irrelevant_module.output_something() actually calls C++ code, so it doesn't use Python prints, but rather:
Code: Select all
cout << "..." << endl;
Thanks!