However, this will not always be the case, and starting my python script from any other directory fails to load the channels. Is there a specific, unambiguous way to load the compiled channels directly in a script (hoc or python) so that I do not have to depend on the simulation being run from the same directory as the compiled files?
I looked at
Code: Select all
The main reason I want to do this is for code organization. I would like to have all my mod files separate from my hoc and python files in an nmodl/ subdirectory and compile them within that directory whenever I change them.
My workaround now uses a makefile to copy then compile the mod files in all the directories of my project then delete them the mods, which is not ideal.