I use python
for data analysis. A lot of pandas
. I have started writing modules to perform things I run often, like processing a file in a specific way.
To handle that, I created a folder named "packages", then I import the package like so:
import sys
sys.path.append('/packages')
import importlib
import mypackage
importlib.reload(mypackage)
It's a bit of a hassle because I need to add the path (not the end of the world). I just keep the code block and copy and paste.
Is there a better way to handle custom local packages?