11 |
use Time::HiRes qw/time/; |
use Time::HiRes qw/time/; |
12 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
13 |
use File::Spec; |
use File::Spec; |
14 |
|
use Cwd qw/abs_path/; |
15 |
|
|
16 |
use base qw/Class::Accessor/; |
use base qw/Class::Accessor/; |
17 |
__PACKAGE__->mk_accessors( qw/log_debug no_log debug/ ); |
__PACKAGE__->mk_accessors( qw/log_debug no_log debug/ ); |
168 |
|
|
169 |
=cut |
=cut |
170 |
|
|
171 |
|
my $abs_path; |
172 |
|
|
173 |
sub var_path { |
sub var_path { |
174 |
my $self = shift; |
my $self = shift; |
175 |
|
|
176 |
return File::Spec->catfile('var', @_); |
if ( ! $abs_path ) { |
177 |
|
# $abs_path = abs_path( $0 ); |
178 |
|
# $abs_path =~ s!/WebPAC/Common\.pm!!; |
179 |
|
$abs_path = '/data/webpac2'; |
180 |
|
} |
181 |
|
|
182 |
|
return File::Spec->catfile($abs_path, 'var', @_); |
183 |
} |
} |
184 |
|
|
185 |
=head1 EXPORTED NETHODS |
=head1 EXPORTED NETHODS |