https://github.com/samtuhka/pupil
Tip revision: e3f4f4c21ae20bebd13795f85fe02ba9ddee31ef authored by Moritz Kassner on 10 July 2014, 14:06:50 UTC
added metrics display.
added metrics display.
Tip revision: e3f4f4c
write_version_file.py
'''
(*)~----------------------------------------------------------------------------------
Pupil - eye tracking platform
Copyright (C) 2012-2014 Pupil Labs
Distributed under the terms of the CC BY-NC-SA License.
License details are in the file license.txt, distributed as part of this software.
----------------------------------------------------------------------------------~(*)
'''
import os,sys
def main(target_dir):
modules_path = os.path.join(os.path.abspath(__file__).rsplit(os.path.sep,2)[0],'pupil_src','shared_modules')
sys.path.append(modules_path)
from git_version import get_tag_commit
version = get_tag_commit()
print "Current version of Pupil: ",version
with open(os.path.join(target_dir,'_version_string_'),'w') as f:
f.write(version)
print 'Wrote version into: %s' %os.path.join(target_dir,'_version_string_')
def get_version():
modules_path = os.path.join(os.path.abspath(__file__).rsplit(os.path.sep,2)[0],'pupil_src','shared_modules')
sys.path.append(modules_path)
from git_version import get_tag_commit
return get_tag_commit()
if __name__ == '__main__':
main("dist/pupil_capture")