mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Uses pkg_resources to figure out radicale's version
This commit is contained in:
parent
0ea72368b0
commit
062e85366d
2 changed files with 9 additions and 11 deletions
|
@ -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"),),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue