Skip to content

FreeCAD: Application: removed banner in Cmd RunMode

Created by: joha2

Thank you for creating a pull request to contribute to FreeCAD! To ease integration, please confirm the following:

  • Branch rebased on latest master git pull --rebase upstream master
  • Unit tests confirmed to pass by running ./bin/FreeCAD --run-test 0 (there appeared some ReferenceError: Cannot access attribute 'isDerivedFrom' of deleted object in the PartOMagic workbench)
  • Commit message is well-written

This PR should lead to a more "normal" behaviour of FreeCAD when invoked as standard Python interpreter. In some tools (i.e. Fenics) a JIT compiler asks for the Python version by using the actual binary and performing the following script.

 $ ./bin/FreeCAD -c "import sys; print sys.version"
 2.7.12 (default, Nov 12 2018, 14:36:49) 
 [GCC 5.4.0 20160609]

Usually the output is used to derive some directories (i.e. include, lib, ...) for JIT compiling from it. This does not work when the banner is shown, since the version string is malformed. Therefore it is maybe useful to remove the banner when using the "Cmd" RunMode.

Merge request reports