Skip to content

Commit

Permalink
use python 2 because of pytries/DAWG#31
Browse files Browse the repository at this point in the history
  • Loading branch information
msklvsk committed Oct 3, 2018
1 parent e0b7b1d commit 6ffd758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/create_dawg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python2

import sys
import dawg
Expand Down
2 changes: 1 addition & 1 deletion src/nlp/morph_analyzer/utils.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export function writeCompiledDict(path: string, compiledDict) { // todo: type
}
closeSync(f)

execSync(join(__dirname, '../../create_dict_dawg.py ') + path)
execSync('python2 ' + join(__dirname, '../../create_dict_dawg.py ') + path)
unlinkSync(path + '/words.dawg.json')
}

0 comments on commit 6ffd758

Please sign in to comment.