MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / get_version

Function get_version

setup.py:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17# Get version
18def get_version():
19 version_file = os.path.join(os.path.dirname(__file__), 'openocr', '__init__.py')
20 with open(version_file, 'r', encoding='utf-8') as f:
21 for line in f:
22 if line.startswith('__version__'):
23 return line.split('=')[1].strip().strip('"').strip("'")
24 return '0.1.0'
25
26setup(
27 name='openocr-python',

Callers 1

setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected