From 05188b4c7fa03d7e5d5db2dc55709e617bf382f4 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 2 Dec 2017 09:25:48 +0100 Subject: [PATCH] Enable install_path=None for Python targets #2087 --- waflib/Tools/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Tools/python.py b/waflib/Tools/python.py index d4a06d1f..52a05c66 100644 --- a/waflib/Tools/python.py +++ b/waflib/Tools/python.py @@ -79,7 +79,7 @@ def process_py(self, node): """ Add signature of .py file, so it will be byte-compiled when necessary """ - assert(getattr(self, 'install_path')), 'add features="py"' + assert(hasattr(self, 'install_path')), 'add features="py"' # where to install the python file if self.install_path: