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:
@@ -7,7 +7,7 @@ version_file_path = path.join(current_path, "compile_version_string.txt")
|
|||||||
|
|
||||||
def get_version_string():
|
def get_version_string():
|
||||||
with open(version_file_path, "r") as file:
|
with open(version_file_path, "r") as file:
|
||||||
contents = file.readline()
|
contents = file.readline().strip('\n')
|
||||||
return contents.strip('"')
|
return contents.strip('"')
|
||||||
|
|
||||||
def set_version_string(new_version_string):
|
def set_version_string(new_version_string):
|
||||||
|
|||||||
Reference in New Issue
Block a user