For Example, top.avs imported function.avsi, in function.avsi, I want to get the top layer script's absolute path: 'e:\scripts\top.avs' I tried to call ScriptFile() in function.avsi when I execute top.avs, but it always returns function.avsi's path. It seems avisynth internel function doesn't have feature to get the Top Layer script's absolute path?