Skip to content
Snippets Groups Projects
Commit 45b69b53 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Only write a version file if none exist

parent 7c9eef18
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -18,11 +18,12 @@ try:
else:
status = '(UNCLEAN) ' + git_log
except subprocess.CalledProcessError:
status = ""
status = ''
version_file = '.version'
with open('tupak/' + version_file, 'w+') as f:
f.write('{} - {}'.format(version, status))
if path.isfile(version_file) is False:
with open('tupak/' + version_file, 'w+') as f:
f.write('{} - {}'.format(version, status))
here = path.abspath(path.dirname(__file__))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment