def get_package_version():
base = os.path.abspath(os.path.dirname(__file__))<EOL>with open(os.path.join(base, "<STR_LIT>")) as initf:<EOL><INDENT>for line in initf:<EOL><INDENT>m = version.match(line.strip())<EOL>if not m:<EOL><INDENT>continue<EOL><DEDENT>return "<STR_LIT:.>".join(m.groups()[<NUM_LIT:0>].split("<STR_LIT:U+002CU+0020>"))<EOL><DEDENT><DEDENT>
returns package version without importing it