|
From: James T. <ja...@fl...> - 2023-06-06 10:57:55
|
> On 5 Jun 2023, at 17:01, mer...@al... wrote: > > As for the original question, we'd then just take the Aircraft dirs... where in the prop tree can we find them? You wan to use the Nasal resolvepath() function, again like the GUi selector we don’t want people doing manual path handling in Nasal because it often gets weird with non-Latin paths. resolvepath() takes a path ‘tail’ and tries it against each aircraft/data path in turn until it finds a match, then gives back the resolved absolute path to what it found. eg resolvepath(“Liveries/c172p/livery-foobar.xml”) .. might give you back C://Users/jimbob/Some/Dirs/My-Aircraft/Liveries/c172p/livery-foobar.xml <c://Users/jimbob/Some/Dirs/My-Aircraft/Liveries/c172p/livery-foobar.xml> Kind regards, James |