def read_version():
    """
    Reads the version without self importing
    """
    with open("notepad/__init__.py") as f:
        lines = f.read().splitlines()
        for l in lines:
            if "__version__" in l:
                return l.split("=")[1].strip().replace('"', "")
dataset/ETHPy150Open pyQode/pyqode.core/examples/notepad/setup.py/read_version/original