def get_version(): filename = os.path.join(os.path.dirname(__file__), "wpm", "__init__.py") var = runpy.run_path(filename) return var["__version__"]