Subj : Re: Scripts don't work outside of default DIR
To : Gary Ailes
From : g00r00
Date : Wed Jun 02 2021 03:54 pm
GA> (original)
GA> rcspath:=AddSlash(CfgMPEPath+'tdta')
GA> (my fix)
GA> rcspath:='D:\mystic\themes\default\scripts\rcstdta\'
GA>
GA> The top line is what does not work for me but apparently
GA> works for everyone else. Scripts that point to a directory outside of
CfgMPEPath is the current theme's script directory. That isn't always where the script runs from through if your theme inherits scripts for the default or a different theme. Its also looking in directory named 'tdta' for some reason, not rcstdta.
To get the directory where the script is running from you would get it like this: