Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Added script to get version of the release
Browse files Browse the repository at this point in the history
Added script to get version of the release
  • Loading branch information
kishorpulagam92 authored Oct 27, 2021
1 parent be59647 commit a278e2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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 a278e2a

Please sign in to comment.