-
Notifications
You must be signed in to change notification settings - Fork 44
/
system_text.py
34 lines (30 loc) · 1.28 KB
/
system_text.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
def system_text():
base_path = "./system_text" # Update this with the correct base path
# Load text
with open(os.path.join(base_path, "init.txt")) as f:
init_text = f.read()
with open(os.path.join(base_path, "board_members/president.txt")) as f:
president_text = f.read()
with open(os.path.join(base_path, "board_members/vicepresident.txt")) as f:
vice_president_text = f.read()
with open(os.path.join(base_path, "board_members/secretary.txt")) as f:
secretary_text = f.read()
with open(os.path.join(base_path, "board_members/treasurer.txt")) as f:
treasurer_text = f.read()
# jointsecretary
with open(os.path.join(base_path, "board_members/jointsecretary.txt")) as f:
jointsecretary_text = f.read()
# executives
with open(os.path.join(base_path, "board_members/executives.txt")) as f:
executives_text = f.read()
# misc
with open(os.path.join(base_path, "board_members/misc.txt")) as f:
misc_text = f.read()
# Combine all text into a single variable
system_text = (
init_text + president_text + vice_president_text +
secretary_text + treasurer_text + jointsecretary_text +
executives_text + misc_text
)
return system_text