ajp_anton
29th August 2019, 04:24
In this example:
import("D:\somefolder\somefunction.avsi")
somefunction.avsi contains a function that loads images from that same folder. I'd like this setup to be portable, meaning I can move and rename the folder to different locations. But the function there assumes the current working dir is where the loading script is. Is there a way inside that function to know where its script is actually located?
ScriptDir() returns the location of the importing script.
import("D:\somefolder\somefunction.avsi")
somefunction.avsi contains a function that loads images from that same folder. I'd like this setup to be portable, meaning I can move and rename the folder to different locations. But the function there assumes the current working dir is where the loading script is. Is there a way inside that function to know where its script is actually located?
ScriptDir() returns the location of the importing script.