Adding a run async

This commit is contained in:
Anonymus Raccoon
2020-04-25 12:20:33 +02:00
parent cc7301ae4a
commit 8d04941c74
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -7,3 +7,8 @@ class CommandHelper:
def run(cmd):
with open(os.devnull, 'wb') as devnull:
return subprocess.call(cmd.split(' '), stdout=devnull, stderr=subprocess.STDOUT)
@staticmethod
def run_async(cmd):
with open(os.devnull, 'wb') as devnull:
return subprocess.Popen(cmd.split(' '), stdout=devnull, stderr=subprocess.STDOUT)
+1 -1
View File
@@ -18,7 +18,6 @@ class AnonymousGoose:
# print(DetectTerm.find_terminal())
# time.sleep(1)
Term.print_all("YOU HAVE BEEN HACKED.\n")
self.run()
def __del__(self):
if not self.stopped:
@@ -46,4 +45,5 @@ class AnonymousGoose:
if __name__ == "__main__":
goose = AnonymousGoose()
goose.run()
goose.stop()