Question: retrieve Package path
Closed this issue · 5 comments
Question: how can I retrieve the directory path of the max package?
I need to access some files that I include in this package folder directly from within an external.
ok, so I found this:
path p { path("fileinmypackage.extension") };
Not sure it is the most elegant way to do it.
seems like a fantastic way to do it.
haha, thx @robtherich
I guess this is good enough, then.
Also note that there's an undocumented path prefix called ... Package:/
, so for instance, passing Package:/Mira
to absolutepath
or conformpath
will result in "HD:/Users/uname/Documents/Max 8/Packages/Mira"
on my machine. I am not a min-sdk expert, I don't know if you can pass this type of path into path()
, but I thought I'd mention it.
@jeremybernstein thank you so much for this secret hint. This was just what I needed!