Commit 08c0e126 authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

use filepath and not filename in error in check_script

parent 39e4dbc2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -356,15 +356,15 @@ class SourceImage(Image):
            fp = os.path.join(directory, fi)
            # check name
            if not re.match("\d+-.*\.py$", fi):
                debug("%s skipped: invalid name" % fi)
                debug("%s skipped: invalid name" % fp)
                continue
            # check execution bit
            if not os.access(fp, os.X_OK):
                debug("%s skipped: not executable" % fi)
                debug("%s skipped: not executable" % fp)
                continue
            # compiling file
            fs = open(fp, "rb").read()
            compile(fs, fi, mode="exec")
            fs = open(fp, "r").read()
            compile(fs, fp, mode="exec")
            arrow(fi)
        arrowlevel(-1)