def get_version(package):
    init_py = open(os.path.join(package, '__init__.py')).read()
    return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
Test if push_dir fails on a non absolute path.
dataset/ETHPy150Open weluse/django-updown/setup.py/get_version--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cp_test.py/CpTestCase.test_push_dir_non_absolute_path