-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstitch.py
57 lines (52 loc) · 947 Bytes
/
stitch.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
mode = "new"
if(mode == "new"):
# print("asdasdasdasd"[-2:])
os.chdir("./c")
files = os.listdir(os.getcwd())
whole = open("../toComp.c", "w")
for i in files:
if(i[-2:] == ".c"):
tmp = open(i, "r")
whole.write(tmp.read())
tmp.close()
whole.close()
exit()
whole = open("toComp.c", "w")
try:
headers = open("c/headers.c","r")
except:
pass
try:
meat = open("c/main.c","r")
except:
pass
try:
drivers = open("c/drivers.c", "r")
except:
pass
try:
utils = open("c/utils.c", "r")
except:
pass
try:
interupts = open("c/text.c", "r")
except:
pass
try:
picstuff = open("c/pic.c", "r")
except:
pass
#whole.write(headers.read())
whole.write(meat.read())
whole.write(drivers.read())
whole.write(interupts.read())
whole.write(utils.read())
whole.write(picstuff.read())
whole.close()
meat.close()
#headers.close()
drivers.close()
interupts.close()
utils.close()
picstuff.close()