-
-
Notifications
You must be signed in to change notification settings - Fork 645
path.join
Jason Perkins edited this page May 18, 2015
·
4 revisions
The path.join function joins two path portions together into a single path.
path.join("leading", "trailing", ...)If trailing is an absolute path, then the leading portion is ignored, and the absolute path is returned instead (see below for examples).
leading is the beginning portion of the path; trailing is a portion to be merged. Multiple arguments may be specified.
A merged path.
Premake 4.0 or later.
-- returns "MySolution/MyProject"
p = path.join("MySolution", "MyProject")
-- returns "/usr/bin", because the trailing path is absolute
p = path.join("MySolution", "/usr/bin")
-- tokens are assumed to be absolute; this returns "$(ProjectDir)"
p = path.join("MySolution", "$(ProjectDir)")