pimoroni / icm20948-python

Python library for the Pimoroni ICM20948 breakout
https://shop.pimoroni.com/products/icm20948
MIT License
48 stars 22 forks source link

Change to the library directory to build the docs when running install.sh #14

Closed rbricheno closed 3 years ago

rbricheno commented 3 years ago

An error occurs when running sudo ./install.sh from the working directory:

Generating documentation.
Error: Failed to generate documentation.

This can be fixed by changing to the library directory before running pydoc.

Gadgetoid commented 3 years ago

Looks like this might happen when /usr/bin/pydoc doesn't match the version(s) of Python for which the library is installed. This seems like a reasonable fix, thanks!