While the gang and I were using the Datasette csvs-to-sqlite plugin, we learned something about modifying the code of installed Python packages: how to use pip uninstall to find the package.
We knew we had issues, and we had begun to figure out how to fix them. What we couldn't figure out is where the actual code we needed to modify lived. We'd used pip to install the plugin, so finally I decided to re-install the plugin, and then watch the installation messages as they flashed by hoping to capture the pertinent directory
So, I typed pip uninstall csvs-to-sqlite . pip immediately asked me if I really wanted to uninstall the package at the packages location. Problem solved! The kids and I found the code at that location, made our edits, and tried out our newly modified version of the plugin!
References:
Pip show?
ReplyDeleteEven better! Thank you!
ReplyDelete