import os_handler as command
import os_core as core
import importlib
import sys
from os_services import *
import platform
import os

try:
  importlib.import_module("os_core")
except ImportError:
    print("OS_CORE not found, aborting...")
    sys.exit("\033[1;37;41m" + "Error 1C: OS_CORE NOT FOUND: \n\nThis occurs when the OS core could not be found, either re-download the module/OS or try moving to this folder."  + "\033[0m")
else:
  print("")

print("python version: " + '\x1b[6;30;47m ' + platform.python_version() + ' \x1b[0m')
print("system version: " + '\x1b[6;30;47m ' + '1.0.3' + ' \x1b[0m')
def main():
  com = input("\033[1;35;40m" + " @" + user + ' \x1b[0m' + os.getcwd() + "> ")
  command.executeCommand(com)

while True:
  main()