- Timestamp:
- 2019-04-12T19:36:30+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/cgi-bin/experimental-ocr-server.pl
r24872 r33011 14 14 Win32::SetChildShowWindow(0) 15 15 if defined &Win32::SetChildShowWindow; 16 17 # On Ubuntu 18.04, gsdlCGI.pm can't be found as the cgi folder is not among @INC paths. 18 # Ensure gsdlCGI.pm is available in @INC by adding the cgi folder to it. 19 # For GS2: 20 my $gsdl_cgi_path = $ENV{'GSDLHOME'} . "/cgi-bin"; 21 # For GS3: 22 $gsdl_cgi_path = $ENV{'GSDL3HOME'} . "/WEB-INF" . "/cgi" if defined $ENV{'GSDL3HOME'}; 16 23 24 my $found_cgi_path = 0; 25 foreach my $inc_path (@INC) { 26 if($inc_path eq $gsdl_cgi_path) { 27 $found_cgi_path = 1; 28 last; 29 } 30 } 31 if(!$found_cgi_path) { 32 unshift (@INC, $gsdl_cgi_path); 33 } 17 34 } 18 35
Note:
See TracChangeset
for help on using the changeset viewer.