Mercurial > repos > bgruening > osra
comparison osra.py @ 4:3b50c1d0d1e5
Uploaded
author | bgruening |
---|---|
date | Thu, 25 Apr 2013 11:05:09 -0400 |
parents | deccc074dbfb |
children | 143a63ca2bca |
comparison
equal
deleted
inserted
replaced
3:deccc074dbfb | 4:3b50c1d0d1e5 |
---|---|
3 import os, sys | 3 import os, sys |
4 import subprocess | 4 import subprocess |
5 | 5 |
6 """ | 6 """ |
7 OSRA_DATA_FILES is set during the toolshed Installation | 7 OSRA_DATA_FILES is set during the toolshed Installation |
8 if it is not set, use the standard configuration of OSRA and hope the best. | 8 If it is not set, use the standard configuration of OSRA. |
9 That means we need to delete argument 4-7. | |
9 That script is a hack, because we do not know the content of OSRA_DATA_FILES at xml evaluation time. | 10 That script is a hack, because we do not know the content of OSRA_DATA_FILES at xml evaluation time. |
10 | 11 |
11 osra -f $oformat $infile | 12 osra -f $oformat $infile |
12 -l \$OSRA_DATA_FILES/spelling.txt -a \$OSRA_DATA_FILES/superatom.txt | 13 -l \$OSRA_DATA_FILES/spelling.txt -a \$OSRA_DATA_FILES/superatom.txt |
13 > $outfile | 14 > $outfile |