From dc3e5c154436ad4597a678f521dc4a74ce4addcb Mon Sep 17 00:00:00 2001 From: Thefeli73 Date: Wed, 7 Oct 2020 06:03:43 +0200 Subject: [PATCH] fixa lite i launchern --- clearGames.py | 10 +++++----- launcher.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clearGames.py b/clearGames.py index e36f892..5c47af8 100644 --- a/clearGames.py +++ b/clearGames.py @@ -1,8 +1,8 @@ from game_layer import GameLayer api_key = "74e3998d-ed3d-4d46-9ea8-6aab2efd8ae3" game_layer = GameLayer(api_key) -state = game_layer.game_state -game_layer.force_end_game() -game_layer.force_end_game() -game_layer.force_end_game() -game_layer.force_end_game() \ No newline at end of file +def clear_it(): + game_layer.force_end_game() + game_layer.force_end_game() + game_layer.force_end_game() + game_layer.force_end_game() \ No newline at end of file diff --git a/launcher.py b/launcher.py index 3dde4cb..bc399f8 100644 --- a/launcher.py +++ b/launcher.py @@ -1,7 +1,6 @@ import main -import time +import clearGames from multiprocessing import Pool -import multiprocessing proc_running = 4 # MAX 4!!! @@ -18,6 +17,7 @@ def launch(list): if __name__ == '__main__': + clearGames.clear_it() with Pool(proc_running) as p: results = p.map(run_main, range(proc_running)) launch(results)