I wish for a specific module to be inserted at the head of the syspath before I debug a file so that this module is picked up instead of a different version of the module in a release location.
e.g. run this code after I click the Debug button in PyCharm:
import sys; sys.path.insert(0, "/my/local/path")
does anybody know how to do this in PyCharm?
at the moment I'm copying in this line of code at the top of the file I am debugging but this is messy and I shouldn't be messing with live code like that in case i make a commit by mistake.