Make python version script remove newlines from version string

Previously newlines would remain and foul up the other build tools.
This commit is contained in:
Vasily
2019-07-04 18:25:44 +02:00
committed by username223
parent 696ddfdea4
commit e70f66b2cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ version_file_path = path.join(current_path, "compile_version_string.txt")
def get_version_string():
with open(version_file_path, "r") as file:
contents = file.readline()
contents = file.readline().strip('\n')
return contents.strip('"')
def set_version_string(new_version_string):