check_same_directories.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 # Simple script to check whether two directories are the same.  I'm doing
00004 # it in this script because the following command-line invocation produces
00005 # a syntax error for reasons that I don't understand:
00006 #
00007 #  python -c 'import os; if os.path.realpath("/u/gerkey/code/ros/ros/core/rosconsole") != os.path.realpath("/u/gerkey/code/ros/ros/core/rosconsole"): raise Exception'
00008 
00009 import sys, os
00010 
00011 if __name__ == '__main__':
00012   if len(sys.argv) != 3:
00013     raise Exception
00014   if os.path.realpath(sys.argv[1]) != os.path.realpath(sys.argv[2]):
00015     raise Exception


rosbuild
Author(s): Brian Gerkey, Troy Straszheim, Morgan Quigley
autogenerated on Thu Jan 2 2014 11:52:45