aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'statify')
-rwxr-xr-xstatify5
1 files changed, 3 insertions, 2 deletions
diff --git a/statify b/statify
index a26a066..752c78d 100755
--- a/statify
+++ b/statify
@@ -13,8 +13,9 @@ BEGIN {
if(-f '/etc/elections/Votify.pm') {
$dirname = '/etc/elections';
} else {
- use File::Basename;
- $dirname = dirname(__FILE__);
+ use Cwd qw(abs_path);
+ use File::Basename qw(dirname);
+ $dirname = dirname(abs_path(__FILE__));
}
push @INC, $dirname;
}