Skip to content
Snippets Groups Projects
Commit 55907395 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Windows: Convert version correctly

parent c67da7dd
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ def get_resouce_code(filename, file_version, file_desc, icon_path,
"""
def to_ver_list(v):
v = v.replace('-dev', '.')
v = v.split("-")[0]
return ",".join(map(str, (list(map(int, v.split("."))) + [0] * 4)[:4]))
file_version_list = to_ver_list(file_version)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment