FEM Post: Give access to cmake BUILD variables from python

This commit adds a attribute __cmake__ to App which is a list holding all compile time cmake variables starting with BUILD.

Only export BUILD variables
This commit is contained in:
Stefan Tröger
2016-02-27 11:23:24 +01:00
committed by wmayer
parent 53312d2d10
commit affbf2b9d7
4 changed files with 272 additions and 0 deletions

View File

@@ -150,6 +150,9 @@ Err = FreeCAD.Console.PrintError
Wrn = FreeCAD.Console.PrintWarning
test_ascii = lambda s: all(ord(c) < 128 for c in s)
#store the cmake variales
App.__cmake__ = cmake;
Log ('Init: starting App::FreeCADInit.py\n')
# init every application by importing Init.py