Skip to content

Commit 621b5fc

Browse files
author
Bruno da Silva de Oliveira
committed
- added INTERFACE_FILE
[SVN r20005]
1 parent 6ada069 commit 621b5fc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyste/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
10 September 2003
2+
A new variable is accessible in the Pyste files: INTERFACE_FILE contains the
3+
full path of the pyste file.
4+
15
4 September 2003
26
Now it is possible to override protected and private pure virtual functions
37
in Python, as requested by Roman Yakovenko.

pyste/src/Pyste/pyste.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import time
4444
import declarations
4545

46-
__version__ = '0.9.23'
46+
__version__ = '0.9.24'
4747

4848
def RecursiveIncludes(include):
4949
'Return a list containg the include dir and all its subdirectories'
@@ -249,6 +249,7 @@ def ExecuteInterface(interface):
249249
_imported_count[interface] = _imported_count.get(interface, 0) + 1
250250
exporters.current_interface = interface
251251
context = CreateContext()
252+
context['INTERFACE_FILE'] = os.path.abspath(interface)
252253
execfile(interface, context)
253254
exporters.current_interface = old_interface
254255

0 commit comments

Comments
 (0)