@@ 436-440 (lines=5) @@ | ||
433 | $b_found = false; |
|
434 | while (!$b_found && !empty($ar_path)) { |
|
435 | $this->sPathDocutils = $ar_path[0]; |
|
436 | if (is_executable($this->sPathDocutils . 'rst2html.py')) { |
|
437 | $b_found = true; |
|
438 | $this->aCfg['cmd_.py'] = true; |
|
439 | break; |
|
440 | } |
|
441 | // In some env like my (MT) Centos5, cmd hasn't .py extension |
|
442 | if (is_executable($this->sPathDocutils . 'rst2html')) { |
|
443 | $b_found = true; |
|
@@ 442-446 (lines=5) @@ | ||
439 | break; |
|
440 | } |
|
441 | // In some env like my (MT) Centos5, cmd hasn't .py extension |
|
442 | if (is_executable($this->sPathDocutils . 'rst2html')) { |
|
443 | $b_found = true; |
|
444 | $this->aCfg['cmd_.py'] = false; |
|
445 | break; |
|
446 | } |
|
447 | array_shift($ar_path); |
|
448 | } |
|
449 | if ($b_found) { |