Replies: 2 comments 3 replies
-
If the files are necessary for your package to function, it makes sense to put them in the |
Beta Was this translation helpful? Give feedback.
-
But does it mean that I would have to tell potential users to manually remember to set |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a package who must be able to discover the path of a file that is located in the same directory as the one of a library in the package. My first instinct would be to look it up in
(file-name-directory (locate-library "<my-library>"))
. But with Straight, I obtain a directory in$HOME/.emacs.d/straight/build/<my-package>
.Is there a portable way (not Straight only, since I don't want to refer to Straight functions in a package that must be installable by people who do not use Straight) to get the original path?
A hack would be to check if the path returned by
locate-library
is a symlink, and if yes resolve it, but I cannot stop thinking that I'm missing something.Hopefully someone already had this issue before.
Beta Was this translation helpful? Give feedback.
All reactions