MCPcopy Create free account
hub / github.com/axiomatic-systems/Bento4 / GetVersion

Function GetVersion

Scripts/ExportSourceTree.py:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34# GetVersion
35#############################################################
36def GetVersion():
37 f = open(BENTO4_HOME+'/Source/C++/Core/Ap4Version.h')
38 lines = f.readlines()
39 f.close()
40 for line in lines:
41 m = re.match(r'.*AP4_VERSION_STRING *"([0-9]*)\.([0-9]*)\.([0-9]*).*"', line)
42 if m:
43 return m.group(1) + '-' + m.group(2) + '-' + m.group(3)
44 return '0-0-0'
45
46#############################################################
47# Main

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected