bordemstirs
Member
Currently I have two scripts that both import a shared script. One handy thing this shared script does is resource management, and it currently tries to use __FILE__ to know which script is using it... but I just realized after some severe bugs were happening that __FILE__ returns the name of the file it is in, not the name of the current running script. Would it damage anything to change __FILE__ to return the name of the executing script, or can we get a new variable that returns the name of the running script instead?