Enable install_path=None for Python targets #2087

This commit is contained in:
Thomas Nagy 2017-12-02 09:25:48 +01:00
parent a5a3915b7a
commit 05188b4c7f
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 1 deletions

View File

@ -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: