Within the XML of my plugin, I have an include statement, basically:
<include name="path/filename.xml" />
Now, unless I use an absolute path, MUSHclient uses the plugins directory as the working directory for the include. I can't use an absolute path I have no control over where user's put my plugin. Right now, if the plugin isn't directly inside the default plugins directory, the includes won't work. My question, why isn't the working directory the directory the plugin is in? This seems to make more sense to me. Anyways, if this isn't possible, is there some fix so that the user doesn't have to place my plugin in a specific location, ie right inside the default plugin directory?
Thanks, Tsunami
<include name="path/filename.xml" />
Now, unless I use an absolute path, MUSHclient uses the plugins directory as the working directory for the include. I can't use an absolute path I have no control over where user's put my plugin. Right now, if the plugin isn't directly inside the default plugins directory, the includes won't work. My question, why isn't the working directory the directory the plugin is in? This seems to make more sense to me. Anyways, if this isn't possible, is there some fix so that the user doesn't have to place my plugin in a specific location, ie right inside the default plugin directory?
Thanks, Tsunami