Skip to content

Commit 52ca0d6

Browse files
committed
fix installation, invocation of po2json
- no global installation - invoke with node
1 parent 07126ca commit 52ca0d6

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ before_install:
2929
- node --version
3030
- npm --version
3131
- npm upgrade -g npm
32-
- npm install -g [email protected]
32+
- npm install
3333
- |
3434
if [[ $GROUP == js* ]]; then
3535

setupbase.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,11 @@ def should_run(self, name, target):
539539
print(source, target)
540540
return True
541541
return False
542-
542+
543543
def build_main(self, name):
544544
"""Build main.min.js"""
545545
target = pjoin(static, name, 'js', 'main.min.js')
546-
546+
547547
if not self.should_run(name, target):
548548
log.info("%s up to date" % target)
549549
return
@@ -552,12 +552,14 @@ def build_main(self, name):
552552

553553
def build_jstranslation(self, trd):
554554
lang = trd[-5:]
555-
run(['po2json', '-p', '-F',
556-
'-f', 'jed1.x',
557-
'-d', 'nbjs',
558-
pjoin('notebook', 'i18n', lang ,'LC_MESSAGES', 'nbjs.po'),
559-
pjoin('notebook', 'i18n', lang, 'LC_MESSAGES', 'nbjs.json')
560-
])
555+
run([
556+
pjoin('node_modules', '.bin', 'po2json'),
557+
'-p', '-F',
558+
'-f', 'jed1.x',
559+
'-d', 'nbjs',
560+
pjoin('notebook', 'i18n', lang, 'LC_MESSAGES', 'nbjs.po'),
561+
pjoin('notebook', 'i18n', lang, 'LC_MESSAGES', 'nbjs.json'),
562+
])
561563

562564
def run(self):
563565
self.run_command('jsdeps')

0 commit comments

Comments
 (0)