view libervia/__init__.py @ 1245:079e8eb6e327

server (tasks): refactoring: - moved `TasksManager` to `server.tasks.manager` - tasks modules now must have a `Task` class which will be instanciated by TasksManager - `server.tasks.task` has a basis for `Task` class - `Task.prepare` can now be asynchronous - `importlib` is now used to import tasks, instead of exec - tasks are now parsed/run after pages are imported - `server.BackendReady` is now a coroutine - type hinting for Task attributes
author Goffi <goffi@goffi.org>
date Sat, 25 Apr 2020 16:08:55 +0200
parents 3b844004c0b4
children ac2374c92294
line wrap: on
line source

import os.path

version_file = os.path.join(os.path.dirname(__file__), "VERSION")
try:
    with open(version_file) as f:
        __version__ = f.read().strip()
except NotImplementedError:
    # pyjamas workaround
    __version__ = "0.7.0D"