TylerGubala / bpy-build

Python build script for Blender as a python module
GNU General Public License v3.0
40 stars 9 forks source link

TypeError: Can only concatenate list (not None) to list #11

Closed TylerGubala closed 3 years ago

TylerGubala commented 3 years ago

When using bpy-build as the build system for bpy, an issue arises:

File [...] line 88 in get_configure_commands
commands.append(['cmake', "-DWITH_PYTHON_INSTALL=OFF", "-DWITH_PYTHON_MODULE=ON"] + cmake_configure_args + os_configure_args + 
TypeError: can only concatenate list (not None type) to list

This is due to the assignment of cmake_configure_args to None.

To avoid this, the code should guard the assignment and assign an empty list if the list is left at the default value.

cmake_configure_args = cmake_configure_args if \
                       cmake_configure_args is not None else []