Re: [Premake-users] Testing whether an executable of a given name exists in the path.
On GitHub now!
Brought to you by:
starkos,
ttk-bandit
From: Jason P. <st...@gm...> - 2006-08-04 00:42:19
|
On 8/3/06, David Bronke <whi...@gm...> wrote: > Now I need a way to test whether or not the given config script exists > in the path, because if it doesn't, it is found through another > environment variable. Is there a good way to test for this? If you know where it is located, then call os.fileexists(). If you don't, I'm not so sure...could you try calling execute('myconfigscript') and test the return value? It would not be too difficult to add a function to search the path for a file, in fact findlib() does that already on windows (but linux or osx). Jason |