Changeset 8250214 for this_version.py
- Timestamp:
- Apr 7, 2017, 3:16:43 PM (7 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
- Children:
- f4dbf64b
- Parents:
- 7a2666f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
this_version.py
r7a2666f r8250214 1 1 #! python 2 2 import os 3 import sys 3 4 4 5 __version_info = {} # keep a reference to parse VERSION once … … 82 83 gitsha = subprocess.check_output(gitcmd).strip().decode('utf8') 83 84 except Exception as e: 84 print('git command error :%s' % e)85 sys.stderr.write('git command error :%s\n' % e) 85 86 return None 86 87 # check if we have a clean tree … … 89 90 output = subprocess.check_output(gitcmd).decode('utf8') 90 91 if len(output): 91 print('Info: current tree is not clean\n')92 print(output)92 sys.stderr.write('Info: current tree is not clean\n\n') 93 sys.stderr.write(output + '\n') 93 94 gitsha += '+mods' 94 95 except subprocess.CalledProcessError as e: 95 print (e)96 sys.stderr.write('git command error :%s\n' % e) 96 97 pass 97 98 return gitsha
Note: See TracChangeset
for help on using the changeset viewer.