summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Util.py')
-rw-r--r--src/engine/SCons/Util.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py
index d366d9a..38489ef 100644
--- a/src/engine/SCons/Util.py
+++ b/src/engine/SCons/Util.py
@@ -336,6 +336,15 @@ else:
def is_String(e):
return type(e) is types.StringType or isinstance(e, UserString)
+class Proxy:
+ """A simple generic Proxy class, forwarding all calls to
+ subject. Inherit from this class to create a Proxy."""
+ def __init__(self, subject):
+ self.__subject = subject
+
+ def __getattr__(self, name):
+ return getattr(self.__subject, name)
+
# attempt to load the windows registry module:
can_read_reg = 0
try: