Fix setup.py requiring gen_web_gettext
This commit is contained in:
parent
3c1d7da698
commit
6837d83f5b
4
setup.py
4
setup.py
|
@ -134,7 +134,11 @@ class BuildWebUI(cmd.Command):
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Create the gettext.js file for translations.
|
# Create the gettext.js file for translations.
|
||||||
|
try:
|
||||||
from gen_web_gettext import create_gettext_js
|
from gen_web_gettext import create_gettext_js
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
deluge_all_path = os.path.join(js_basedir, self.JS_SRC_DIRS[0])
|
deluge_all_path = os.path.join(js_basedir, self.JS_SRC_DIRS[0])
|
||||||
print('Creating WebUI translation file: %s/gettext.js' % deluge_all_path)
|
print('Creating WebUI translation file: %s/gettext.js' % deluge_all_path)
|
||||||
create_gettext_js(deluge_all_path)
|
create_gettext_js(deluge_all_path)
|
||||||
|
|
Loading…
Reference in New Issue