lvapeab / m4loc

Automatically exported from code.google.com/p/m4loc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

mod_detokenizer.pl cannot be called from outside containing folder #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. change to a folder outside of trunk/xliff
2. Copy & paste the following text into a file called test.tok.en:
this is a <g id="1"> small </g> house
3. call "path/to/trunk/xliff/mod_detokenizer.pl < test.tok.en"

Result:
Error message: 'Can't open perl script "detokenizer.perl": No such file or 
directory'

Expected:
mod_detokenizer.pl to run w/o error message

Fix: 
Detect executing folder with:
use FindBin qw($Bin);
then call detokenizer.pl in system() call with the path in $Bin

Workaround:
Call mod_detokenizer.pl from containing folder

Original issue reported on code.google.com by Achi...@gmail.com on 31 Mar 2011 at 8:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r86.

Original comment by Achi...@gmail.com on 9 Jun 2011 at 3:51