Home | History | Annotate | Download | only in build
      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.
      5 
      6 import os
      7 import sys
      8 
      9 
     10 def DoMain(argv):
     11   depth = argv[0]
     12   return os.path.relpath(os.getcwd(), os.path.abspath(depth))
     13 
     14 
     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
     21 
     22 
     23 if __name__ == '__main__':
     24   sys.exit(main(sys.argv))
     25