Changeset 11497 for trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
- Timestamp:
- Jan 31, 2007, 1:41:36 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
r11400 r11497 1 1 # Copyright (c) 2006 Paul Price, Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1.2 4 2007-01-30 00:41:06 price Exp $3 # $Id: Config.pm,v 1.25 2007-01-31 23:41:36 eugene Exp $ 4 4 5 5 package PS::IPP::Config; … … 108 108 } 109 109 } 110 croak "Unable to find camera configuration file $filename\n" 111 if not defined $found; 110 if (not defined $found) { 111 ## try again after a moment? 112 system ("df"); 113 select(undef, undef, undef, 0.25); 114 115 ## try a second time 116 my $found; 117 foreach my $path (@path) { 118 print "trying: filename: $filename, path: $path -> "; 119 my $test = File::Spec->rel2abs( $filename, $path ); 120 print "test: $test\n"; 121 if (-f $test) { 122 $found = $test; 123 last; 124 } 125 } 126 croak "Unable to find camera configuration file $filename\n" if not defined $found; 127 } 112 128 113 129 # Read the file
Note:
See TracChangeset
for help on using the changeset viewer.
