-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
68 lines (57 loc) · 1.78 KB
/
main.py
File metadata and controls
68 lines (57 loc) · 1.78 KB
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
58
59
60
61
62
63
64
65
66
67
68
# Desc: Entry point for RPCortex - Nebula OS
# File: /main.py
# Last Updated: 4/1/2026
# Lang: MicroPython, English
# Version: v0.8.1
# Author: dash1101
# RPC β81
VERSION = "β81"
CODENAME = "Nebula"
_R = "\033[0m"
def _grad(text_lines):
gradient = [
"\033[96m", # bright cyan
"\033[36m", # cyan
"\033[36m", # cyan
"\033[94m", # bright blue
"\033[34m", # blue
"\033[95m", # bright magenta
"\033[35m", # magenta
]
for i, line in enumerate(text_lines):
color = gradient[i % len(gradient)]
print(color + line + _R)
def main():
LOGO = [
" ::::::::: ::::::::: ::::::::::",
" :+: :+: :+: :+: :+: :+: ",
" +:+ +:+ +:+ +:+ +:+ ",
" +#++:++#: +#++:++#+ +#+ ",
" +#+ +#+ +#+ +#+ ",
" #+# #+# #+# #+# #+# ",
"### ### ### ######## ",
]
print()
_grad(LOGO)
ver_str = "RPCortex {} - {}".format(VERSION, CODENAME)
print("\033[90m" + ver_str.center(41) + _R)
print("\033[90m" + ("─" * 41) + _R)
print("Initializing OS...\n")
try:
import Core.post as post
except Exception as ex:
print("[!!!] [MicroPython Core] Core.post failed to import...")
print(ex)
return
try:
if post.script():
import Core.initialization as init
init.start("Startup")
else:
print("[!!!] [POST] Post check FAILED!")
except Exception as ex:
print("[!!!] [MicroPython Core] Core.initialization failed to import...")
print("[!!!] [MicroPython Core] Or a critical error has occurred.")
print(ex)
if __name__ == "__main__":
main()