From 14b7d15a033ee51ebab7e4a74f9f992e6ec1d9d4 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Wed, 15 Jul 2020 17:35:22 +0200 Subject: [PATCH] Ensure that the assertion message is showed in python.py #2302 --- waflib/Tools/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waflib/Tools/python.py b/waflib/Tools/python.py index b1c8dd01..74326402 100644 --- a/waflib/Tools/python.py +++ b/waflib/Tools/python.py @@ -79,12 +79,12 @@ def process_py(self, node): """ Add signature of .py file, so it will be byte-compiled when necessary """ - assert(hasattr(self, 'install_path')), 'add features="py" for target "%s" in "%s/wscript".' % (self.target, self.path.nice_path()) + assert(hasattr(self, 'install_path')), 'add features="py" for target "%s" in "%s/wscript".' % (self.target, self.path.abspath()) self.install_from = getattr(self, 'install_from', None) relative_trick = getattr(self, 'relative_trick', True) if self.install_from: assert isinstance(self.install_from, Node.Node), \ - 'add features="py" for target "%s" in "%s/wscript" (%s).' % (self.target, self.path.nice_path(), type(self.install_from)) + 'add features="py" for target "%s" in "%s/wscript" (%s).' % (self.target, self.path.abspath(), type(self.install_from)) # where to install the python file if self.install_path: