In the process of coding, I often make use of one or more packages of my own that I'm in the process of evolving. These packages are not located in a directory that is part of my Python installation, and are thus not on my default path for locating packages.
What is the best way to ensure access to a specific one of these packages in other code I'm working on? One approach I've taken is
import sys
sys.path.append('/Users/Rax/Documents/Projects/Coding/Python/mypackages')
import somepackage
which at least contains the effect of the package to the place where it us needed. But this seems cumbersome and brittle.
Is there a generally accepted best practice, or perhaps some feature I'm missing, for ensuring a locally developed package is found? Or am I overthinking this: should I simply put add the path to my packages to the global packages path?
This is not a virtualenv
question.