Image-Py / imagepy

Image process framework based on plugin like imagej, it is esay to glue with scipy.ndimage, scikit-image, opencv, simpleitk, mayavi...and any libraries based on numpy
http://imagepy.org
BSD 4-Clause "Original" or "Old" License
1.29k stars 330 forks source link

fix the startup error when only there is only one toolbar #65

Closed qixinbo closed 4 years ago

qixinbo commented 4 years ago

Description:

When there is only one toolbar file folder, the origin code will cause an error: add_tools(toolsbar, datas[1][1][1])
IndexError: list index out of range

So here adding one line to detect the length of the tuple of "datas": if len(datas[1]) > 1: