Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getall():
- colors = []
- content = filemanager.File.read("config/config.txt")
- for line in content:
- if "[Highlighting]" in line:
- first_color_index = content.index(line) + 1
- for i in range(first_color_index, ((len(content) - first_color_index))):
- if content[i] == "" or content[i] == None:
- end_color_index = content.index(content[i])
- try:
- for x in range(first_color_index, end_color_index):
- colors.append(content[x])
- except:
- colors = None
- return colors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement