Skip to content

Commit a78644d

Browse files
Make diff-so-fancy as a symlink work
1 parent 3340c55 commit a78644d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

diff-so-fancy

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ my $VERSION = "1.2.0";
44

55
#################################################################################
66

7-
use File::Spec; # For catdir
8-
use File::Basename; # For dirname
9-
use Encode; # For handling UTF8 stuff
10-
use lib dirname(File::Spec->catdir($0)) . "/lib"; # Add the local lib/ to @INC
7+
use File::Spec; # For catdir
8+
use File::Basename; # For dirname
9+
use Encode; # For handling UTF8 stuff
10+
use Cwd qw(abs_path); # For realpath()
11+
use lib dirname(abs_path(File::Spec->catdir($0))) . "/lib"; # Add the local lib/ to @INC
1112
use DiffHighlight;
1213

1314
use strict;

0 commit comments

Comments
 (0)