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

fix: Populate __file__ var when evaluating scripts #169

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Conversation

psychonic
Copy link
Member

This change populates the normally built-in __file__ variable with the path of the script, for evaled scripts.

A current use case is being able to detect the current script path in hl2sdk-manifests's SdkHelpers.ambuild to then be able to infer the path of the manifests folder beside it.

@psychonic psychonic merged commit 88895ab into master Jul 6, 2024
4 checks passed
@psychonic psychonic deleted the psy/file-var branch July 6, 2024 17:29
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

Successfully merging this pull request may close these issues.

1 participant