Strip whitespace from version_string line
This prevents stray newlines from getting in there.
This commit is contained in:
@@ -10,7 +10,7 @@ import string
|
|||||||
def get_version_string():
|
def get_version_string():
|
||||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
with open(dir_path + "/../compile_version_string.txt", "r") as file:
|
with open(dir_path + "/../compile_version_string.txt", "r") as file:
|
||||||
contents = file.readline()
|
contents = file.readline().strip()
|
||||||
return contents
|
return contents
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user