tweak git_revision (VERSION has no newline, so git_revision shouldn't)
This commit is contained in:
parent
b774ed8f32
commit
5e10faf779
@ -134,7 +134,7 @@ USER_DIRLIST = (USER_HOME, HOME_DIR, VERSION_DIR, ENV_DIR, TEMP_DIR, THUMB_DIR,
|
|||||||
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
|
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
|
||||||
|
|
||||||
sys.path.insert(0, ROOT_DIR)
|
sys.path.insert(0, ROOT_DIR)
|
||||||
git_revision = get_git_revision(ROOT_DIR)
|
git_revision = get_git_revision(ROOT_DIR).replace('\n', '')
|
||||||
if sys.platform == 'win32' and git_revision == "":
|
if sys.platform == 'win32' and git_revision == "":
|
||||||
git_revision = get_git_revision(os.path.split(ROOT_DIR)[1])
|
git_revision = get_git_revision(os.path.split(ROOT_DIR)[1])
|
||||||
VERSION += git_revision
|
VERSION += git_revision
|
||||||
|
Loading…
x
Reference in New Issue
Block a user