MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / get_version_number

Function get_version_number

deploy.py:19–23  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

17rc_path = os.path.join (script_dir, 'src/plugin/DSpellCheck.rc')
18
19def get_version_number (filename):
20 info = GetFileVersionInfo (filename, "\\")
21 ms = info['FileVersionMS']
22 ls = info['FileVersionLS']
23 return '{}.{}.{}.{}'.format (HIWORD (ms), LOWORD (ms), HIWORD (ls), LOWORD (ls))
24
25version_str = re.compile (r'(\s*VALUE "FileVersion", ")([0-9.]*)(")')
26rc_encoding = 'utf-16-le'

Callers 1

deploy.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected