#!/usr/bin/env python import sys, os if len(sys.argv) != 2: sys.exit(-1) name = sys.argv[1] + "/CMake.qhp" f = open(name) if not f: sys.exit(-1) lines = f.read().splitlines() if not lines: sys.exit(-1) newlines = [] for line in lines: if "