set_location

Declaration

set_location (location, root, path: STRING)

Description

Changes location to point to path optionally rooted at the root location. Locations can be rooted at another location and specify a path relative to that or they can just be a path.

See also

is_location
Location manager

Example

script remap_locations is
  set_location ('profiles', 'project', 'users')
    -- change the 'profiles' location 'users' at the root of the project
  set_location ('pictures', '', 'd:\data')
    -- look for pictures in 'd:\data'
end