Mercurial > libervia-web
comparison twisted/plugins/libervia_server.py @ 1449:7e63fdb272e5
misc: don't take post version into account when comparing versions
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Aug 2021 22:05:37 +0200 |
parents | 1f66a363f1a0 |
children | 106bae41f5c8 |
comparison
equal
deleted
inserted
replaced
1445:1f66a363f1a0 | 1449:7e63fdb272e5 |
---|---|
29 pdb.set_trace = ipdb.set_trace | 29 pdb.set_trace = ipdb.set_trace |
30 pdb.post_mortem = ipdb.post_mortem | 30 pdb.post_mortem = ipdb.post_mortem |
31 except ImportError: | 31 except ImportError: |
32 pass | 32 pass |
33 | 33 |
34 import re | |
34 import os.path | 35 import os.path |
35 import libervia | 36 import libervia |
36 import sat | 37 import sat |
37 | 38 |
38 from libervia.server.constants import Const as C | 39 from libervia.server.constants import Const as C |
46 from twisted.plugin import IPlugin | 47 from twisted.plugin import IPlugin |
47 from twisted.application.service import IServiceMaker | 48 from twisted.application.service import IServiceMaker |
48 import configparser | 49 import configparser |
49 | 50 |
50 | 51 |
51 if libervia.__version__ != sat.__version__: | 52 RE_VER_POST = re.compile(r"\.post[0-9]+") |
53 | |
54 if RE_VER_POST.sub("", libervia.__version__) != RE_VER_POST.sub("", sat.__version__): | |
52 import sys | 55 import sys |
53 | 56 |
54 sys.stderr.write( | 57 sys.stderr.write( |
55 """sat module version ({sat_version}) and {current_app} version ({current_version}) mismatch | 58 """sat module version ({sat_version}) and {current_app} version ({current_version}) mismatch |
56 | 59 |