def read_version():
    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('"', "").replace("'", '')


# automatically build when run without arguments
Reads the version without self importing
dataset/ETHPy150Open pyQode/pyqode.core/examples/notepad/freeze_setup.py/read_version