Skip to content

Commit

Permalink
adding version.py for autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nabsabraham authored Feb 16, 2021
1 parent 95737ee commit e13d3b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pandaserd/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os
def string():
try:
with open(os.path.dirname(__file__) + "/VERSION", "r", encoding="utf-8") as fh:
version = fh.read().strip()
if version:
return version
except:
pass
return "unknown (git checkout)"

0 comments on commit e13d3b0

Please sign in to comment.