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