diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/win/clobber_generated_headers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/win/clobber_generated_headers.py b/build/win/clobber_generated_headers.py index 7b90b37..cfcf83b 100644 --- a/build/win/clobber_generated_headers.py +++ b/build/win/clobber_generated_headers.py @@ -22,6 +22,8 @@ def total_split(path): components = [] while path: head, tail = os.path.split(path) + if not tail: + break components.append(tail) path = head return list(reversed(components)) @@ -46,4 +48,4 @@ for path in sys.argv[1:]: os.remove(full_path) print 'Clobbered ' + full_path except OSError: - print 'Could not remove ' + full_path + '. Continuing.'
\ No newline at end of file + print 'Could not remove ' + full_path + '. Continuing.' |