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

Question: Is __FILE__ for getting the currently running file an official feature? #2269

Closed
kyleplo opened this issue Sep 24, 2022 · 1 comment

Comments

@kyleplo
Copy link

kyleplo commented Sep 24, 2022

I've been looking for a while for a way to get the currently running file, and came across __FILE__ which seems to do exactly what I want. However, I don't see it documented anywhere. Before I publish any code using it, I'd like to make sure that __FILE__ is an official feature that can be used in production code.
If not, is there another way to do what I want?

@gfwilliams
Copy link
Member

Yes, this is definitely an official feature that you can rely on. Good point about the docs - I'll add something now.

@kyleplo kyleplo closed this as completed Sep 26, 2022
gfwilliams added a commit that referenced this issue Sep 26, 2022
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

2 participants