コード例 #1
0
ファイル: Restart.py プロジェクト: CBVRT2008/Cos
def restart_os():
    try:
        Kernel.Prepare_For_shutdown()
        time.sleep(1)
        Kernel.startup()

    except AttributeError:
        Kernel.Crash("Second_Restart_Error", True)
コード例 #2
0
ファイル: Boot.py プロジェクト: CBVRT2008/Cos
def Boot():
    DoBoot = open("Cos/Cos64/Settings/Boot.ini", "r")
    DoBootContents = DoBoot.read()
    DoBoot.close()
    if DoBootContents == "Boot=True":
        DoBootFormat = True

    else:
        DoBootFormat = False

    if DoBootFormat:
        print("Press ] to open boot-settings")
        count = 0
        while count != 500:
            Hotkey.While_Boot()
            count += 1
            time.sleep(0.00000001)
        Kernel.Setup()
        Kernel.startup()

    if not DoBootFormat:
        CrashHandler.CrashHandler()
コード例 #3
0
ファイル: Start.py プロジェクト: CBVRT2008/Cos
def Start():
    Kernel.Setup()
    Kernel.startup()
コード例 #4
0
def restart_os():
    time.sleep(1)
    Kernel.startup()
コード例 #5
0
ファイル: Restart.py プロジェクト: CBVRT2008/Cos
def restart_os():
    Kernel.Prepare_For_shutdown()
    time.sleep(1)
    Kernel.startup()