OESetLicenseFile

void OESetLicenseFile(const char *fname)

Set the OpenEye license file to use to perform license checks. This can be used instead setting the OE_LICENSE environment variable.

Note

Although OEChem can be imported without a license check other OpenEye libraries may perform their license check at load time. Therefore, this function should be used before importing those libraries, for example:

from openeye.oechem import *
OESetLicenseFile("/usr/local/openeye/oe_license.txt")
from openeye.oespicoli import *