Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get justfile_directory() of an included justfile? #1583

Closed
sgtsquiggs opened this issue Apr 14, 2023 · 2 comments
Closed

How to get justfile_directory() of an included justfile? #1583

sgtsquiggs opened this issue Apr 14, 2023 · 2 comments

Comments

@sgtsquiggs
Copy link

justfile_directory() called from within an imported justfile returns the directory of the parent justfile.

@andrzejressel
Copy link

There is source_directory() that does exactly that

@casey
Copy link
Owner

casey commented Jul 18, 2024

Yup, source_directory(). (Now also callable as source_dir() in recent versions.)

@casey casey closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants