#!/usr/bin/env python
import yaml, os, sys
if os.path.exists('./stack.yaml'):
  print yaml.load(open('./stack.yaml'))['Version']
else:
  print >>sys.stderr, 'This doesn\'t appear to be a catkin stack.\n\tMake sure you are in a directory with a stack.yaml.'
  sys.exit(1)
