Hi,
In a proprietary code base (so unfortunately can't share context), the Cursor tab autocomplete suggested that I start a file with the following two lines of code:
import sys
sys.path.append('/Users/alexanderkell/Documents/PhD/Projects/18-battery-optimisation/')
Hasta la vista.