Adding subdirectory path for running mod files

Post Reply
JimH
Posts: 54
Joined: Tue Apr 10, 2007 3:36 pm
Location: Duke University

Adding subdirectory path for running mod files

Post by JimH »

I'd like to keep my nmodl files in a separate subdirectory and add a path so that while running a hoc file it utilizes the mod files in that subdirectory. Thoughts on how I would implement this? Thanks.
ted
Site Admin
Posts: 5784
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

Two thoughts about this.
To see how it can be done, read c:\nrn\lib\hoc\pcchdir.hoc to learn how to use nrn_load_dll()
If you need more explanation than that, it's probably best to avoid bothering with it.
JimH
Posts: 54
Joined: Tue Apr 10, 2007 3:36 pm
Location: Duke University

Post by JimH »

Thanks, I just found that function.

For others reference:
I put all the files I needed in a subdirectory "modFiles", used mknrndll, and then the first file I run has the following code.

Code: Select all

nrn_load_dll("modFiles/nrnmech.dll")
Post Reply