Hi there!
I want to create my own script plugin, which calls an external tool via a menu entry. With the sample plugin script, this works fine.
Now my problem: the external tool needs the name of the executable including its full path. I have tried some of the documented methods of the active projects but none of them returns the correct path. Some only return the name of the executable, some only a path (which did not contain my executable...).
Can anyone help me with my problem?
Thank you
Sven
local executable = GetProjectManager().GetActiveProject().GetOutputFilename();
if (!IsNull(executable))
{
::ShowMessage(outputfile);
IO.Execute(_T("insight ") + executable);
}
Hello all,
thank you for your replies, I solved my problem with this code:
local activetarget = GetProjectManager().GetActiveProject().GetActiveBuildTarget();
if (!IsNull(activetarget))
{
local outputfile = GetProjectManager().GetActiveProject().GetBuildTarget(activetarget).GetOutputFilename();
local basepath = GetProjectManager().GetActiveProject().GetBasePath();
local executable = basepath + outputfile;
}