License retrieval¶
how licensecc find the license file¶
Licensecc, when integrated into a software can automatically find its license file (or multiple license files) based on:
An environment variable:
Placing the full path of the license file in the environment variable
LICENSE_LOCATIONthe library will look for it. Multiple license files can be separated by ‘;’Placing the full license content in the environment
LICENSE_DATAwill let the library load it.
Placing the license in the same folder of the licensed executable will make the software find its own license. The filename must be the same of the executable, the extension
.lic. eg. if you’re licensingmy_awesome_software.exethe license file must be in the same folder and must be calledmy_awesome_software.lic.The calling application can specify the location (or the complete license data) using
LicenseLocationstructure.Implementing and registering the interface
LicenseLocatorsoftware authors can easily define their own strategy.