Mercurial > libervia-web
comparison src/__init__.py @ 861:5cefc6ab302f
server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 25 Jan 2016 16:41:38 +0100 |
parents | fd438e51bda8 |
children |
comparison
equal
deleted
inserted
replaced
860:05cd9dc775e6 | 861:5cefc6ab302f |
---|---|
1 from server.constants import Const as C | 1 try: |
2 | 2 from common.constants import Const as C |
3 __version__ = C.APP_VERSION | 3 except ImportError: |
4 pass # import doesn't work at this stage with pyjamas | |
5 else: | |
6 __version__ = C.APP_VERSION |