diff --git a/pyste/NEWS b/pyste/NEWS index 620db457..05ae45a8 100644 --- a/pyste/NEWS +++ b/pyste/NEWS @@ -1,3 +1,7 @@ +10 September 2003 +A new variable is accessible in the Pyste files: INTERFACE_FILE contains the +full path of the pyste file. + 4 September 2003 Now it is possible to override protected and private pure virtual functions in Python, as requested by Roman Yakovenko. diff --git a/pyste/src/Pyste/pyste.py b/pyste/src/Pyste/pyste.py index 8ef97213..3e595f31 100644 --- a/pyste/src/Pyste/pyste.py +++ b/pyste/src/Pyste/pyste.py @@ -43,7 +43,7 @@ from CppParser import CppParser, CppParserError import time import declarations -__version__ = '0.9.23' +__version__ = '0.9.24' def RecursiveIncludes(include): 'Return a list containg the include dir and all its subdirectories' @@ -249,6 +249,7 @@ def ExecuteInterface(interface): _imported_count[interface] = _imported_count.get(interface, 0) + 1 exporters.current_interface = interface context = CreateContext() + context['INTERFACE_FILE'] = os.path.abspath(interface) execfile(interface, context) exporters.current_interface = old_interface