CMS 3D CMS Logo

classnames-extract.py
Go to the documentation of this file.
1 #! /usr/bin/env python3
2 
3 f = open('classes.txt', 'r')
4 g = open('classnames.txt', 'w')
5 for line in f:
6  fields = line.split("'")
7  if fields[0] == 'class ':
8  g.write(fields[1]+'\n')
9 
10 f.close()
11 g.close()