Skip to content
Snippets Groups Projects
Commit 08c0e126 authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

use filepath and not filename in error in check_script

parent 39e4dbc2
No related branches found
No related tags found
No related merge requests found
...@@ -356,15 +356,15 @@ class SourceImage(Image): ...@@ -356,15 +356,15 @@ class SourceImage(Image):
fp = os.path.join(directory, fi) fp = os.path.join(directory, fi)
# check name # check name
if not re.match("\d+-.*\.py$", fi): if not re.match("\d+-.*\.py$", fi):
debug("%s skipped: invalid name" % fi) debug("%s skipped: invalid name" % fp)
continue continue
# check execution bit # check execution bit
if not os.access(fp, os.X_OK): if not os.access(fp, os.X_OK):
debug("%s skipped: not executable" % fi) debug("%s skipped: not executable" % fp)
continue continue
# compiling file # compiling file
fs = open(fp, "rb").read() fs = open(fp, "r").read()
compile(fs, fi, mode="exec") compile(fs, fp, mode="exec")
arrow(fi) arrow(fi)
arrowlevel(-1) arrowlevel(-1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment