Chromium Code Reviews| Index: pydir/utils.py |
| diff --git a/pydir/utils.py b/pydir/utils.py |
| index 6fdedfafae03f4d1968e303661a9107c699fe818..d7997014acef7ce2c66f2d07ef31b167c2d77c2e 100644 |
| --- a/pydir/utils.py |
| +++ b/pydir/utils.py |
| @@ -17,7 +17,8 @@ def FindBaseNaCl(): |
| nacl = 'native_client' |
| path_list = os.getcwd().split(os.sep) |
|
Jim Stichnoth
2016/01/10 00:52:55
Another thought is to add a line like:
path_lis
Sean Klein
2016/01/11 18:29:44
Done.
|
| if nacl not in path_list: |
| - return None |
| + print "Script must be executed from within 'native_client' directory" |
| + exit(1) |
| last_index = len(path_list) - path_list[::-1].index(nacl) |
| return os.sep.join(path_list[:last_index]) |