- Timestamp:
- 06/21/09 03:47:53 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-NYTProf/lib/Padre/Plugin/NYTProf/ProfilingTask.pm
r5405 r5428 45 45 46 46 my $nytprof_env_vars = ""; 47 my $drive = ""; 47 48 foreach my $env( keys( %{ $self->{nytprof_envars} } ) ) { 49 # we can't use the full file path because the colon 50 # in the file path is the same delimiter NYTProf uses 51 # for NYTPROF environment variable. 52 # not the best but: 53 print "env: $env\n"; 54 if( ($env eq 'file') && ($^O eq 'MSWin32') ) { 55 print "setting drive for win32\n"; 56 $self->{nytprof_envars}->{$env} =~ /(\w\:)(.*$)/; 57 $drive = $1; 58 $self->{nytprof_envars}->{$env} = $2; 59 } 48 60 $nytprof_env_vars .= "$env=" . $self->{nytprof_envars}->{$env} . ":"; 49 61 } … … 60 72 if( $^O eq "MSWin32" ) { 61 73 print "Running on windows\n"; 62 $cmd = "set NYTPROF=$nytprof_env_vars && "; 63 74 $cmd = "$drive && set NYTPROF=$nytprof_env_vars && "; 64 75 } 65 76 elsif( $^O eq "darwin" ) {
Note: See TracChangeset
for help on using the changeset viewer.
