mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
Fix setup.py requiring gen_web_gettext
This commit is contained in:
parent
3c1d7da698
commit
6837d83f5b
1 changed files with 8 additions and 4 deletions
12
setup.py
12
setup.py
|
@ -134,10 +134,14 @@ class BuildWebUI(cmd.Command):
|
|||
sys.exit(1)
|
||||
|
||||
# Create the gettext.js file for translations.
|
||||
from gen_web_gettext import create_gettext_js
|
||||
deluge_all_path = os.path.join(js_basedir, self.JS_SRC_DIRS[0])
|
||||
print('Creating WebUI translation file: %s/gettext.js' % deluge_all_path)
|
||||
create_gettext_js(deluge_all_path)
|
||||
try:
|
||||
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])
|
||||
print('Creating WebUI translation file: %s/gettext.js' % deluge_all_path)
|
||||
create_gettext_js(deluge_all_path)
|
||||
|
||||
|
||||
class CleanWebUI(cmd.Command):
|
||||
|
|
Loading…
Add table
Reference in a new issue