зеркало из https://github.com/mozilla/pjs.git
Fix problems with slash direction for activestate perl. r=dbaron.
This commit is contained in:
Родитель
bcd51f4e0b
Коммит
f126baa3e4
|
@ -98,6 +98,9 @@ sub include {
|
|||
my $directory = $stack->{'variables'}->{'DIRECTORY'};
|
||||
if ($filename ne '-') {
|
||||
$filename = File::Spec::_0_8::rel2abs($filename, $directory);
|
||||
# splitpath expects forward-slash paths on windows, so we have to
|
||||
# change the slashes if using Activestate Perl.
|
||||
$filename =~ s?\\?/?g if "$^O" eq "MSWin32";
|
||||
my($volume, $path) = File::Spec::_0_8::splitpath($filename);
|
||||
$directory = File::Spec::_0_8::catpath($volume, $path, '');
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче