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

Commit 8b31ac8

Browse files
authored
update
1 parent e7c952f commit 8b31ac8

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

apps/helloworldapp.py

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

53
def main():
64
print("Hello, World!")
75
print("Make an app in the app folder (with the same structure just modified to fit your app code).")
8-
9-
# Path to the kernel script in the KERNEL folder
10-
this_dir = os.path.dirname(os.path.abspath(__file__))
11-
kernel_script = os.path.join(this_dir, '..', 'KERNEL', 'kernel.py')
12-
13-
# Check if the kernel script exists before trying to run it
14-
if os.path.isfile(kernel_script):
15-
try:
16-
# Run the kernel script as a subprocess
17-
subprocess.run([sys.executable, kernel_script], check=True)
18-
except subprocess.CalledProcessError as e:
19-
print(f"Error executing the kernel script: {e}")
20-
except Exception as e:
21-
print(f"An unexpected error occurred: {e}")
22-
else:
23-
print("Kernel Script Not found or has a defect. Please reinstall SkyOS or replace the kernel file.")
6+
sys.exit()
247

258
if __name__ == "__main__":
269
main()

0 commit comments

Comments
 (0)