annotate libervia/__init__.py @ 1170:4648a333b33f

doc: use "sourcecode" directive instead of "code" + small mistakes fixes: RST "code" directive is not always working well with "jinja" code. It has been replaced with sphinx specific "sourcecode" (alias of "code-block", nicer to read in not formatted doc) which is working better.
author Goffi <goffi@goffi.org>
date Fri, 12 Apr 2019 14:12:53 +0200
parents cd6dd7f66551
children cc16d93d4181
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1124
28e3eb3bb217 files reorganisation and installation rework:
Goffi <goffi@goffi.org>
parents: 861
diff changeset
1 import os.path
28e3eb3bb217 files reorganisation and installation rework:
Goffi <goffi@goffi.org>
parents: 861
diff changeset
2
28e3eb3bb217 files reorganisation and installation rework:
Goffi <goffi@goffi.org>
parents: 861
diff changeset
3 version_file = os.path.join(os.path.dirname(__file__), "VERSION")
861
5cefc6ab302f server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents: 856
diff changeset
4 try:
1124
28e3eb3bb217 files reorganisation and installation rework:
Goffi <goffi@goffi.org>
parents: 861
diff changeset
5 with open(version_file) as f:
28e3eb3bb217 files reorganisation and installation rework:
Goffi <goffi@goffi.org>
parents: 861
diff changeset
6 __version__ = f.read().strip()
28e3eb3bb217 files reorganisation and installation rework:
Goffi <goffi@goffi.org>
parents: 861
diff changeset
7 except NotImplementedError:
28e3eb3bb217 files reorganisation and installation rework:
Goffi <goffi@goffi.org>
parents: 861
diff changeset
8 # pyjamas workaround
1163
cd6dd7f66551 we are in dev version again
Goffi <goffi@goffi.org>
parents: 1149
diff changeset
9 __version__ = "0.7.0D"