Update V8 to version 4.7.24.
[chromium-blink-merge.git] / build / inverse_depth.py
blobce7a6abb68a6ef9cee80ad373c5c2936b1edf85f
1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 import os
7 import sys
10 def DoMain(argv):
11 depth = argv[0]
12 return os.path.relpath(os.getcwd(), os.path.abspath(depth))
15 def main(argv):
16 if len(argv) < 2:
17 print "USAGE: inverse_depth.py depth"
18 return 1
19 print DoMain(argv[1:])
20 return 0
23 if __name__ == '__main__':
24 sys.exit(main(sys.argv))