def getversionMercurial():
    try:
        import os
        try:
            p=__path__[0]
        except:
            p=os.path.curdir
        filename=p+os.sep+"/CHANGELOG.txt"
        if(os.path.exists(filename)):
            f=open(filename)
            l=f.readline()
            s=l.split()
            return s[0]
        else:
            return __subversion__
    except:
        return __subversion__

def getMonthYear():
    try:
        import calendar
        import time
        month= calendar.month_name[time.localtime().tm_mon]
        year=time.localtime().tm_year
        return month+str(year)
    except:
        return ''

__version__ = '2.'
__subversion__='.9'
__subversion__=getversionMercurial()+"."+getMonthYear()
__author__='CEA - IRAMIS - LIONS'
__author_email__='olivier.tache@cea.fr'
__url__='http://iramis.cea.fr/sis2m/lions/'


