core: apply wokkel patches if they are not already:
this case may happen if a sat module is used without the backend being launched (e.g. in tests)
This commit is contained in:
parent
1ab5488e0d
commit
b186f74b17
1 changed files with 7 additions and 7 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
|
||||||
# Libervia: an XMPP client
|
# Libervia: an XMPP client
|
||||||
# Copyright (C) 2009-2021 Jérôme Poisson (goffi@goffi.org)
|
# Copyright (C) 2009-2021 Jérôme Poisson (goffi@goffi.org)
|
||||||
|
|
||||||
|
|
@ -17,11 +16,12 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
import os.path
|
import os.path
|
||||||
|
from sat_tmp import wokkel
|
||||||
|
|
||||||
version_file = os.path.join(os.path.dirname(__file__), "VERSION")
|
version_file = os.path.join(os.path.dirname(__file__), "VERSION")
|
||||||
try:
|
with open(version_file) as f:
|
||||||
with open(version_file) as f:
|
__version__ = f.read().strip()
|
||||||
__version__ = f.read().strip()
|
|
||||||
except NotImplementedError:
|
if not wokkel.installed:
|
||||||
# pyjamas workaround
|
print("installing Wokkel patches")
|
||||||
__version__ = "0.7.0D"
|
wokkel.install()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue