parscit/lib/SectLabel/Controller.pm in biblicit-2.2.0 vs parscit/lib/SectLabel/Controller.pm in biblicit-2.2.1

- old
+ new

@@ -15,18 +15,20 @@ require 'dumpvar.pl'; use strict; # Dependencies -use FindBin; +use File::Basename; +my $dir = dirname(__FILE__); +my $parscitHome = "$dir/../../"; # Local libraries use SectLabel::Config; use SectLabel::Tr2crfpp; use SectLabel::PostProcess; use CSXUtil::SafeText qw(cleanXML); -my $generic_sect_path = $FindBin::Bin . "/sectLabel/genericSectExtract.rb"; +my $generic_sect_path = $parscitHome . "bin/sectLabel/genericSectExtract.rb"; ### # Main API method for generating an XML document including all # section data. Returns a reference XML document. ###