When developing externals in C, I've been using the function
path_getdefault() to get the absolute pathname of the directory
that contains the patch. It works fine, unless the directory
is located at least one level deep within one of the top-level
directories within Max's search path. In this case,
path_getdefault(), in conjunction with path_topathname(), fails
to report the actual directory that contains the patch. Instead,
it reports the absolute pathname to one of the top-level directories in Max's search path.
As far as I know, there is no way to get the pathname to the
directory that contains the patch in both situations. Am I right?
If so, I'd like to request a function be added to the SDK that
will always report the correct directory regardless of whether or
not the directory is in Max's search path. I hope this is a reasonable (and not too difficult to implement) request.