def get_version(package):
    init_py = open(os.path.join(package, '__init__.py')).read()
    return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
@contextmanager decorator.
dataset/ETHPy150Open facebook/augmented-traffic-control/atc/django-atc-demo-ui/setup.py/get_version--crossover with--dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/contextlib.py/contextmanager