Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getclasses():
- cli = []
- for fn in G_prognames:
- st = open(G_homedir+fn,"r").read()
- st = st.split("\n")
- while st:
- xx = st.pop(0)
- if xx.lstrip()[0:9] == "G_classes" and xx.rstrip()[-3:] == '"""':
- while st:
- xx = st.pop(0)
- if xx.lstrip()[0:3] == '"""':
- break
- else:
- xx = xx.lstrip().rstrip()
- if xx and xx[0] != "#":
- cli.append(xx.lstrip().rstrip())
- cli = removenullsfromlist(list(set(cli)))
- cli = list(set(list(cli)))
- return cli
- #~ {'y_displ': 0, 'x_displ': 0, 'rect': (255, 136, 981, 595), 'y': 4, 'x': 0, 'dir': 0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement