More python 3 compatibility.
authorjenkins <jenkins@cs2-23.cs>
Wed, 3 Feb 2016 15:24:05 +0000 (15:24 +0000)
committerjenkins <jenkins@cs2-23.cs>
Wed, 3 Feb 2016 15:24:05 +0000 (15:24 +0000)
cdist

diff --git a/cdist b/cdist
index 04b62ef68e04e887bdf6c1ee31e0c98c7d3e2d46..bff4528a0556827b9854d21c65baa0d1d73da099 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -627,7 +627,7 @@ class Tree(object):
         proj = '%s/src/%s' % (target.directory, self.name)
 
         self.cscript = {}
-        execfile('%s/cscript' % proj, self.cscript)
+        exec(open('%s/cscript' % proj).read(), self.cscript)
 
         if os.path.exists('%s/wscript' % proj):
             v = read_wscript_variable(proj, "VERSION");