Merge pull request #24 from idle-org/features/launch_discord
implemented discord launch
This commit is contained in:
commit
63bf687f0e
|
|
@ -1,5 +1,6 @@
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import importlib
|
import importlib
|
||||||
import threading
|
import threading
|
||||||
|
|
@ -216,6 +217,8 @@ class TestRunner:
|
||||||
if RUN_OVER:
|
if RUN_OVER:
|
||||||
if POST_RUN_ALLOWED and self.is_infected == 0: # Second part is redundant
|
if POST_RUN_ALLOWED and self.is_infected == 0: # Second part is redundant
|
||||||
print(colored("\n > Running post test runner...", "green"))
|
print(colored("\n > Running post test runner...", "green"))
|
||||||
|
if self.agnostic_path.os == "windows":
|
||||||
|
subprocess.Popen([self.agnostic_path.main_path + f"\\Discord{self.agnostic_path.ptb}.exe"])
|
||||||
return 0
|
return 0
|
||||||
return 1
|
return 1
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
|
||||||
Reference in New Issue