[Webkit-unassigned] [Bug 53590] Can't exec "WebKit/Tools/Scripts/print-vse-failure-logs"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 19 06:17:35 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=53590





--- Comment #3 from Felipe <f.dachshund at gmail.com>  2011-02-19 06:17:35 PST ---
Na, Na. The bug, in true, is the use of $0 in relativeScriptsDir. xD
Variable $0 doesn't change when working directory is changed.
I suggest to declare an $absoluteScriptsDir in webkitdirs.pm, that will be used by relativeScriptsDir :

my $absoluteScriptsDir = File::Spec->rel2abs(dirname($0), getcwd());

sub relativeScriptsDir()
{
    my $scriptDir = File::Spec->catpath("", File::Spec->abs2rel($absoluteScriptsDir, getcwd()), "");
    if ($scriptDir eq "") {
        $scriptDir = ".";
    }
    return $scriptDir;
}

I tested it and it seems ok. :)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list