()
returns package version without importing it
returns package version without importing it
returns package version without importing it
def get_package_version():
    "returns package version without importing it"
    base = os.path.abspath(os.path.dirname(__file__))
    with open(os.path.join(base, "tcelery/__init__.py")) as initf:
        for line in initf:
            m = version.match(line.strip())
            if not m:
                continue
            return ".".join(m.groups()[0].split(", "))
def get_package_version ( ) : base = os . path . abspath ( os . path . dirname ( __file__ ) ) with open ( os . path . join ( base , "tcelery/__init__.py" ) ) as initf : for line in initf : m = version . match ( line . strip ( ) ) if not m : continue return "." . join ( m . groups ( ) [ 0 ] . split ( ", " ) )