From 689a8cb1fcf98cfc9381b8eba4cddd7b3a095ad7 Mon Sep 17 00:00:00 2001 From: Florian Kellermann Date: Sun, 17 Apr 2022 13:27:25 +0200 Subject: [PATCH] Removed testfile --- telegram_bot/testfile.py | 41 ---------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 telegram_bot/testfile.py diff --git a/telegram_bot/testfile.py b/telegram_bot/testfile.py deleted file mode 100644 index 4369096..0000000 --- a/telegram_bot/testfile.py +++ /dev/null @@ -1,41 +0,0 @@ -from multiprocessing import Process -import time - -class Array_Class: - def __init__(self): - self.array = [] - - def SetArray(self, parray): - array = parray - - def GetArray(self): - return self.array - -my_array = Array_Class() - - -def update_crontab(): - global my_array - array = [] - time.sleep(5) - array.append(1) - my_array.SetArray(array) - print("set done") - -def update_based_on_crontab(): - time.sleep(5) - print(my_array.GetArray()) - - -"""update_crontab() -update_based_on_crontab()""" - -if __name__ == "__main__": - p1 = Process(target= update_crontab, args=()) - p1.start() - p3 = Process(target= update_based_on_crontab, args=() ) - p3.daemon = True - p3.start() - p1.join() - p3.terminate() - p1.terminate() \ No newline at end of file