Make append version file more cross platform

This commit is contained in:
Vasily
2019-04-19 22:29:21 +02:00
parent af98c357fc
commit 4e781fa74a
+2 -1
View File
@@ -1,9 +1,10 @@
#!/usr/bin/env python
from sys import argv
from os import path
def get_version_string():
dir_path = path.dirname(path.realpath(__file__))
with open(dir_path + "/compile_version_string.txt", "r") as file:
with open(path.join(dir_path, "compile_version_string.txt"), "r") as file:
contents = file.readline()
return contents.strip('"')