Changeset 10637

Show
Ignore:
Timestamp:
02/09/10 02:47:06 (7 months ago)
Author:
waxhead
Message:

Found a bug with the path creation to nytprofhtml on ubuntu. This is marked as a TODO to fix.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-NYTProf/lib/Padre/Plugin/NYTProf.pm

    r10636 r10637  
    6969        $prof_settings{doc_path} = Padre::Current->document->filename; 
    7070        $prof_settings{temp_dir} = File::Temp::tempdir; 
    71         $prof_settings{perl} = Padre->perl_interpreter; 
     71        $prof_settings{perl} = Padre::Perl->perl; 
    7272        $prof_settings{report_file} = $prof_settings{temp_dir} . "/nytprof.out"; 
    7373        my $prof_task = Padre::Plugin::NYTProf::ProfilingTask->new(\%prof_settings); 
     
    8686    #my $bin_path = $prof_settings{perl}; 
    8787    #$bin_path =~ dirname( $bin_path); #s/[^\\\/](perl.*$)//i; 
     88     
     89    # TODO the path to nytprofhtml has changed to /usr/local/bin 
     90    # I'm not sure if this is due to the way I installed it or 
     91    # if this is a change with the install location with nytprof. 
     92    # so this needs to be done better. 
    8893     
    8994    my( $fname, $bin_path, $suffix ) = File::Basename::fileparse( $prof_settings{perl} );