<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 28, 2016 at 3:53 AM, Mattias Gaertner <span dir="ltr"><<a target="_blank" href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">
<br>
</span>Do you mean, how can a package installed in the IDE find its lpk?<br>
<span class="gmail-HOEnZb"><font color="#888888"></font></span><br></blockquote></div>Pretty much - yes,<br><br></div><div class="gmail_extra">Lets say I've a package <br><br></div><div class="gmail_extra">packagedir/<br></div>./package.lpk<br><div class="gmail_extra">./package.sh<br><div class="gmail_extra">./package.pas<br></div>.</div><div class="gmail_extra">Package is introducing a button into IDE, that does something.<br></div><div class="gmail_extra">On the press of the button I need to execute the script (package.sh). However, I cannot do that, unless I know the path to it. I need to know this path in run-time:<br><br></div><div class="gmail_extra"></div><div class="gmail_extra">  pth := GetPackageDir('package'); // do the search by package name<br></div><div class="gmail_extra">  pth := IncludePathDelimiter(pth)+ 'package.sh';<br></div><div class="gmail_extra">  RunCommand('bash', pth);<br></div><br><div class="gmail_extra">thanks,<br></div><div class="gmail_extra">Dmitry<br><br></div></div>