Strip whitespace from version_string line

This prevents stray newlines from getting in there.
This commit is contained in:
Vasily
2019-07-30 10:45:28 +02:00
committed by username223
parent f65ee06861
commit 94bbd30890
+1 -1
View File
@@ -10,7 +10,7 @@ import string
def get_version_string():
dir_path = os.path.dirname(os.path.realpath(__file__))
with open(dir_path + "/../compile_version_string.txt", "r") as file:
contents = file.readline()
contents = file.readline().strip()
return contents