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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 if not _os.path.isfile(executable + ext): | 342 if not _os.path.isfile(executable + ext): |
343 for path in paths: | 343 for path in paths: |
344 fname = _os.path.join(path, executable + ext) | 344 fname = _os.path.join(path, executable + ext) |
345 if _os.path.isfile(fname): | 345 if _os.path.isfile(fname): |
346 # the file exists, we have a shot at spawn working | 346 # the file exists, we have a shot at spawn working |
347 return fname | 347 return fname |
348 else: | 348 else: |
349 return executable + ext | 349 return executable + ext |
350 | 350 |
351 return None | 351 return None |
OLD | NEW |