summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-07-21 13:44:04 (GMT)
committerSteven Knight <knight@baldmt.com>2003-07-21 13:44:04 (GMT)
commit78c4fae66e565b081bfadd947c2fc9466c57ec03 (patch)
tree271ebb383c81ef5f176d4e76bcae840feb1c432f /src/engine/SCons/Node
parentd77bd9aa09a469f734d52951f09ec8b649d33482 (diff)
downloadSCons-78c4fae66e565b081bfadd947c2fc9466c57ec03.zip
SCons-78c4fae66e565b081bfadd947c2fc9466c57ec03.tar.gz
SCons-78c4fae66e565b081bfadd947c2fc9466c57ec03.tar.bz2
Give Value Nodes timestamps. (Chad Austin)
Diffstat (limited to 'src/engine/SCons/Node')
-rw-r--r--src/engine/SCons/Node/Python.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/Python.py b/src/engine/SCons/Node/Python.py
index 9348b83..312be5c 100644
--- a/src/engine/SCons/Node/Python.py
+++ b/src/engine/SCons/Node/Python.py
@@ -30,6 +30,7 @@ Python nodes.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import SCons.Node
+import time
class Value(SCons.Node.Node):
"""A class for Python variables, typically passed on the command line
@@ -38,6 +39,7 @@ class Value(SCons.Node.Node):
def __init__(self, value):
SCons.Node.Node.__init__(self)
self.value = value
+ self.timestamp = time.time()
def __str__(self):
return repr(self.value)
@@ -74,3 +76,6 @@ class Value(SCons.Node.Node):
for kid in self.children(None):
contents = contents + kid.get_contents()
return contents
+
+ def get_timestamp(self):
+ return self.timestamp