This commit is contained in:
Tully Foote 2012-03-07 19:04:19 +00:00
parent cb92bb41e0
commit 6341160ec5
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ import rosmake
## make sure that rospack is built, it is a requirement for rosmake ## make sure that rospack is built, it is a requirement for rosmake
def assert_rospack_built(): def assert_rospack_built():
if subprocess.call(["rospack","help"], stdout=subprocess.PIPE, stderr=subprocess.PIPE): p = subprocess.Popen(["rospack","help"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = p.communicate()
if p.returncode != 0:
print("rospack not available.\nPlease install rospack before using rosmake and make sure it is available on your path.", file=sys.stderr) print("rospack not available.\nPlease install rospack before using rosmake and make sure it is available on your path.", file=sys.stderr)
sys.exit(-1) sys.exit(-1)