Skip to content

Commit

Permalink
- removed path prefix in file versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
aachenmax committed Feb 28, 2017
1 parent 619b380 commit 71b02ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ def md5andversionallfiles(mypath,outfile):
onlyfiles = getAllSubFiles(mypath)
#onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
for f in onlyfiles:
fileclean = f.lstrip(".\\")
md5hash = md5(join(mypath,f))
if f in usehashforfiles:
if fileclean in usehashforfiles:
version = str(get_git_revision_hash().decode('utf-8'))
else:
version = qtver
out = f + ", " + version.rstrip() + ", " + md5hash + "\n"
out = fileclean + ", " + version.rstrip() + ", " + md5hash + "\n"
versionfile.write(out)
versionfile.close()

Expand Down

0 comments on commit 71b02ea

Please sign in to comment.