RML Licence File Deployment and Verification

If you have purchased a commercial licence you should receive a licence file.

  1. Make sure any expired/old licence files (ReportLabPLUSLicense.py) are deleted (along with the corresponding .pyc).

  2. Make sure that the new file is copied into a directory anywhere on the PYTHONPATH. Typically, if you are running a Python script from a terminal the current working directory should be on the path. You can always check the path in a terminal, start python, then ;

    >>> import sys

    >>> sys.path

  3. Verify by checking:

    -the licence can be imported,

    -the path of the file,

    -the licence number (eg when the the licence was issued),

    -the user field looks right,

    -check the expiry date

    -Example verification:

    $ python
    Python 2.7.13 (default, Sep 26 2018, 18:42:22) 
    [GCC 6.3.0 20170516] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import ReportLabPLUSLicense
    >>> ReportLabPLUSLicense.__file__
    'ReportLabPLUSLicense.py'
    >>>ReportLabPLUSLicense.number
    '20200323095038'
    >>> ReportLabPLUSLicense.user
    'customer-{optional-comment}-year-issued'
    >>>import time
    >>>time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(ReportLabPLUSLicense.expire))
    '2020-09-19 01:00:00'