Changeset 10606
- Timestamp:
- 02/07/10 11:19:10 (7 months ago)
- Location:
- trunk/Padre/lib/Padre
- Files:
-
- 2 modified
-
Document/Perl.pm (modified) (1 diff)
-
Wx/Main.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Document/Perl.pm
r10543 r10606 319 319 my $dir = File::Basename::dirname($filename); 320 320 chdir $dir; 321 322 # (Ticket #845) if Padre folder/script.pl is called filename has folder/ in it so we check for that 323 324 if( $filename =~ /\\|\//) 325 { 326 my @file_name = split /\\|\//, $filename; 327 $filename = $file_name[$#file_name]; 328 } 329 330 331 321 332 return $debug 322 333 ? qq{"$perl" -Mdiagnostics(-traceonly) $run_args{interpreter} "$filename"$Script_Args} -
trunk/Padre/lib/Padre/Wx/Main.pm
r10605 r10606 2390 2390 SCOPE: { 2391 2391 require File::pushd; 2392 my $pushd = File::pushd::pushd( $document->project_dir ); 2392 # Ticket #845 this project_dir is created in correctly when you do padre somedir/script.pl and run F5 on that 2393 # real stupid think so we don't crash 2394 # to fix this $document->get_command needs to recognize which folder it is in 2395 # The other part of this fix is in lib/Padre/Document/Perl.pm in get_command 2396 # Please feel free to fix this 2397 my $pushd = File::pushd::pushd( $document->project_dir) if -e $document->project_dir; 2393 2398 $self->run_command($cmd); 2394 2399 } … … 2404 2409 SCOPE: { 2405 2410 require File::pushd; 2406 my $pushd = File::pushd::pushd( $document->project_dir ) ;2411 my $pushd = File::pushd::pushd( $document->project_dir ) if -e $document->project_dir; 2407 2412 $self->run_command($cmd); 2408 2413 }
