Commit cb056712 authored by Philipp Hörist's avatar Philipp Hörist

Dont fail when importing plugin_i18n for tests

parent 1196e1df
Pipeline #2699 passed with stages
in 3 minutes and 39 seconds
......@@ -21,7 +21,13 @@ import gettext
from gajim.common import configpaths
DOMAIN = 'gajim_plugins'
plugin_user_dir = configpaths.get('PLUGINS_USER')
plugin_user_dir = configpaths.get('PLUGINS_USER')
except KeyError:
# This allows to import the module for tests
print('No plugin translation path available')
plugin_user_dir = ''
plugins_locale_dir = os.path.join(plugin_user_dir, 'locale')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment