def read_version():
finder = VersionFinder()<EOL>path = os.path.join(PROJECT_ROOT, '<STR_LIT>', '<STR_LIT>')<EOL>with codecs.open(path, '<STR_LIT:r>', encoding='<STR_LIT:utf-8>') as fp:<EOL><INDENT>file_data = fp.read().encode('<STR_LIT:utf-8>')<EOL>finder.visit(ast.parse(file_data))<EOL><DEDENT>return finder.version<EOL>
Read version from __init__.py without loading any files