From 08c0e1267e23512242a2cff32e2684d302335e6a Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer <sebastien.luttringer@smartjog.com> Date: Thu, 3 Nov 2011 17:00:16 +0100 Subject: [PATCH] use filepath and not filename in error in check_script --- installsystems/image.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installsystems/image.py b/installsystems/image.py index c0c4f79..6b1f008 100644 --- a/installsystems/image.py +++ b/installsystems/image.py @@ -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) -- GitLab