Make append version file more cross platform
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
from sys import argv
|
from sys import argv
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
def get_version_string():
|
def get_version_string():
|
||||||
dir_path = path.dirname(path.realpath(__file__))
|
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()
|
contents = file.readline()
|
||||||
return contents.strip('"')
|
return contents.strip('"')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user