git » pygen » commit cd4ccc7

Add src_mtime to the execution environment.

author Alberto Bertogli
2006-03-07 18:03:29 UTC
committer Alberto Bertogli
2006-03-07 18:03:29 UTC
parent 148d7eba5da65cb73fe5e174de6633d898230e77

Add src_mtime to the execution environment.

pygen +1 -0

diff --git a/pygen b/pygen
index e6aa589..2ebe9df 100644
--- a/pygen
+++ b/pygen
@@ -38,6 +38,7 @@ def gen_from(src, dst, environ = None, incpath = None):
 		sys.stdout = dst
 		environ = {
 			'sys': sys,
+			'src_mtime': os.path.getmtime(src.name),
 		}
 
 	# include path search