Skip to content

Commit 3340c55

Browse files
Merge pull request #267 from stanislavromanov/next
[Windows] Fix incorrect directory listing for UNIX emulated perl on Windows
2 parents 799e23a + c118c48 commit 3340c55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

diff-so-fancy

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

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

7-
use Cwd qw(abs_path); # For realpath()
8-
use File::Basename; # for dirname
9-
use Encode; # For handling UTF8 stuff
10-
use lib dirname(abs_path($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 lib dirname(File::Spec->catdir($0)) . "/lib"; # Add the local lib/ to @INC
1111
use DiffHighlight;
1212

1313
use strict;

0 commit comments

Comments
 (0)