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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user