OLD | NEW |
1 # -*- coding: ascii -*- | 1 # -*- coding: ascii -*- |
2 # | 2 # |
3 # Copyright 2007 - 2013 | 3 # Copyright 2007 - 2013 |
4 # Andr\xe9 Malo or his licensors, as applicable | 4 # Andr\xe9 Malo or his licensors, as applicable |
5 # | 5 # |
6 # Licensed under the Apache License, Version 2.0 (the "License"); | 6 # Licensed under the Apache License, Version 2.0 (the "License"); |
7 # you may not use this file except in compliance with the License. | 7 # you may not use this file except in compliance with the License. |
8 # You may obtain a copy of the License at | 8 # You may obtain a copy of the License at |
9 # | 9 # |
10 # http://www.apache.org/licenses/LICENSE-2.0 | 10 # http://www.apache.org/licenses/LICENSE-2.0 |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 if not _os.path.isfile(executable + ext): | 469 if not _os.path.isfile(executable + ext): |
470 for path in paths: | 470 for path in paths: |
471 fname = _os.path.join(path, executable + ext) | 471 fname = _os.path.join(path, executable + ext) |
472 if _os.path.isfile(fname): | 472 if _os.path.isfile(fname): |
473 # the file exists, we have a shot at spawn working | 473 # the file exists, we have a shot at spawn working |
474 return fname | 474 return fname |
475 else: | 475 else: |
476 return executable + ext | 476 return executable + ext |
477 | 477 |
478 return None | 478 return None |
OLD | NEW |