Mercurial > libervia-web
annotate libervia/__init__.py @ 1476:c669b5bfb8a0
pages: fix args range in `getURL` + use `urljoin`:
`urljoin` is used to have more adapter `/` management, and avoid a trailing one
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Oct 2021 17:17:21 +0200 |
parents | ac2374c92294 |
children |
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") |
1439 | 4 with open(version_file) as f: |
5 __version__ = f.read().strip() |