Repository Location

All API calls operate on data in the current repository, located on a local or network file system. The root directory of the repository is located in the following way:

  • if the environment variable TKSLLDIR is defined, its value is used as the repository root.

  • (Windows only) otherwise, a registry value is sought under HKEY_CURRENT_USER. This is set if the user has run TopLeaf Workstation on this machine, and reflects the repository chosen in the Preferences dialog.

  • (Windows only) otherwise, a registry value is sought under HKEY_LOCAL_MACHINE. This reflects the repository chosen when TopLeaf was installed on this machine.

If you are using the command line interface, the ‑R flag can be used to set the repository.

If you are using the scripting interface, you can select the repository by setting the value of the Repository property.

If you are using the library interface, you can select the repository by calling Set Repository.