Skip to content

Commit

Permalink
Check VERSION file contents for CueGUI version number. (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
srbhss committed Apr 13, 2020
1 parent 50f3418 commit 38e3e05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cuegui/cuegui/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
import opencue


VERSION = "1.3.0"
possible_version_path = os.path.join(os.path.abspath(os.path.join(__file__ , "../../..")), 'VERSION.in')
if os.path.exists(possible_version_path):
with open(possible_version_path) as fp:
VERSION = fp.read().strip()
else:
VERSION = "1.3.0"

STARTUP_NOTICE_DATE = 0
STARTUP_NOTICE_MSG = ""
Expand Down

0 comments on commit 38e3e05

Please sign in to comment.