Location.getPackagePath

Get the final destination a specific package needs to be stored in.

Note that there needs to be an extra level for libraries like ae which expects their containing folder to have an exact name and use importPath "../".

Hence the final format returned is $BASE/$NAME/$VERSION/$NAME, $BASE is this.packagePath.

struct Location
NativePath
getPackagePath
(,
string vers
)

Parameters

name PackageName

The package name - if the name is that of a subpackage, only the path to the main package is returned, as the subpackage path can only be known after reading the recipe.

vers string

A version string. Typed as a string because git hashes can be used with this function.

Return Value

An absolute NativePath nested in this location.

Meta