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.
This change populates the normally built-in
__file__
variable with the path of the script, foreval
ed 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.