How Do I Access the Directory in which the Component Resides? (Magic xpa 3.x)
While a component is running, you can find out which directory it is running in by using the ProjectDir() function.
Note that this is a function, not a logical name. The logical names that give directory information, such as %WorkingDir% and %TempDir%, will be the same across all the loaded components, but the ProjectDir() is local to one component.