Hi.
Today I was trying to get the current homebrew path from inside the homebrew (I know I can use argp[0] but for style reasons i prefer not to) using kuKernelInitFileName. That's how I call it:
It needs to be called immedately once your module is loaded as the path gets erased soon. Do it from module_start() or in the beginning of the main thread.
Torch wrote:It needs to be called immedately once your module is loaded as the path gets erased soon. Do it from module_start() or in the beginning of the main thread.