Skip to content

os.locate

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Searches the Premake path for a file.

os.locate("file_name")

Parameters

file_name is file name for which to search. It may contain some path information, e.g xcode/xcode.lua.

Return Value

The full path to the file if found, or nil if the file could not be located.

Availability

Premake 5.0 or later.

See Also

Clone this wiki locally