[mmbench] [Up] Installation and Software Evolution

mminstall
Verify if the Morphology Toolbox is registered.

Synopsis

mminstall( code = None )

Implemented in Python.

Input

code String

Authorization code.

Default: None

Description

mminstall verifies if the toolbox is registered or not. If not, it identifies the internal code that must be used to get the authorization code from the software manufacturer.

Source Code

def mminstall(code=None):
    mmver = ''
    if code is None:
       s = mmregister()
       if s[0:8] != 'Licensed':
          print 'Please access the web site http://www.mmorph.com/cgi-bin/pymorph-reg.cgi'
          print 'and use the internal code below to obtain your license'
          print s
          print 'If you have any difficulty, please inform morph@mmorph.com'
          return
    else:
       if mmregister(code,'pymorph_license.txt'):
          s=mmregister()
          if s[0:8] != 'Licensed':
            print 'Could not license the toolbox.'
            return
          else:
            print 'Toolbox registered successfully.'
       else:
          print 'The library file could not be registered'
          return
    

See also

[mmbench] [Up] Python