Is it possible to get this haipera meta value on the script side?
script_path = "/xxx/yyy.py"
The context is that I want to use a script to call another script in the repo but can’t set the path the regular way due to the haipera wrapping (aka __file__ no longer works).
E.g., I'm currently using absolution path like this:
# This doesn't work since haipera launches a duplication of the original script
# SOME_PY = os.path.abspath(os.path.split(
# os.path.abspath(__file__))[0]+'/xxx/yyy.py')
SOME_PY = '/zzz/xxx/yyy.py' # This absolution path is not machine indepedent
Is it possible to get this haipera meta value on the script side? script_path = "/xxx/yyy.py" The context is that I want to use a script to call another script in the repo but can’t set the path the regular way due to the haipera wrapping (aka
__file__
no longer works).E.g., I'm currently using absolution path like this: