| [mmbench] [Up] | Installation and Software Evolution |
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.
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
| [mmbench] [Up] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |