Fixed a few undefined variables
authorThomas Nagy <tnagy2pow10@gmail.com>
Fri, 13 Feb 2015 23:02:47 +0000 (00:02 +0100)
committerThomas Nagy <tnagy2pow10@gmail.com>
Fri, 13 Feb 2015 23:02:47 +0000 (00:02 +0100)
wafadmin/Node.py
wafadmin/Tools/tex.py
wafadmin/Utils.py

index 236dd0d..4fa205c 100644 (file)
@@ -663,7 +663,7 @@ class Node(object):
        def update_build_dir(self, env=None):
 
                if not env:
-                       for env in bld.all_envs:
+                       for env in self.bld.all_envs:
                                self.update_build_dir(env)
                        return
 
index 2dd748b..700c54f 100644 (file)
@@ -154,7 +154,7 @@ def tex_build(task, command='LATEX'):
                task.env.SRCFILE = srcfile
                ret = fun(task)
                if ret:
-                       error('error when calling %s %s' % (command, latex_compile_cmd))
+                       error('error when calling %s %s' % (command, latex_fun))
                        return ret
 
        return None # ok
index 4961f2b..31fb5c4 100644 (file)
@@ -416,7 +416,7 @@ def pprint(col, str, label='', sep='\n'):
        "print messages in color"
        sys.stderr.write("%s%s%s %s%s" % (Logs.colors(col), str, Logs.colors.NORMAL, label, sep))
 
-def check_dir(dir):
+def check_dir(path):
        """If a folder doesn't exists, create it."""
        if not os.path.isdir(path):
                try: