Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit e7c952f

Browse files
authored
finish
1 parent 132097d commit e7c952f

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

apps/simpletextapp.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
1-
import subprocess
2-
import os
31
import sys
42

53
def main():
64
print("Simple Text")
75
print("(What did you expect from an app called simpletext?)")
86
print("Oh, and by the way... 10 + 20 = " + str(10 + 20) + "! How cool!")
97
print("Thanks, scratch_fakemon!")
10-
11-
# Path to the kernel script in the KERNEL folder
12-
this_dir = os.path.dirname(os.path.abspath(__file__))
13-
kernel_script = os.path.join(this_dir, '..', 'KERNEL', 'kernel.py')
14-
15-
# Check if the kernel script exists before trying to run it
16-
if os.path.isfile(kernel_script):
17-
try:
18-
# Run the kernel script as a subprocess
19-
subprocess.run([sys.executable, kernel_script], check=True)
20-
except subprocess.CalledProcessError as e:
21-
print(f"Error executing the kernel script: {e}")
22-
except Exception as e:
23-
print(f"An unexpected error occurred: {e}")
24-
else:
25-
print("Kernel Script Not found or has a defect. Please reinstall SkyOS or replace the kernel file.")
8+
sys.exit()
269

2710
if __name__ == "__main__":
2811
main()

0 commit comments

Comments
 (0)