Uses pkg_resources to figure out radicale's version

This commit is contained in:
Frank Sachsenheim
2018-01-14 18:29:37 +01:00
committed by Unrud
parent 0ea72368b0
commit 062e85366d
2 changed files with 9 additions and 11 deletions

View File

@ -33,6 +33,7 @@ import io
import itertools
import logging
import os
import pkg_resources
import posixpath
import pprint
import random
@ -52,7 +53,8 @@ import vobject
from . import auth, rights, storage, web, xmlutils
VERSION = "2.1.8"
VERSION = pkg_resources.get_distribution('radicale').version
NOT_ALLOWED = (
client.FORBIDDEN, (("Content-Type", "text/plain"),),