pcacc 1 giorno fa
parent
commit
0bbffc8d66
2 ha cambiato i file con 1 aggiunte e 13 eliminazioni
  1. 0 4
      dongri_pic.py
  2. 1 9
      dongri_task.py

+ 0 - 4
dongri_pic.py

@@ -370,7 +370,3 @@ def change_direction(direction):
         return (direction[2], direction[3], direction[0], direction[1])
     else:
         return direction
-
-
-
-_imported = False

+ 1 - 9
dongri_task.py

@@ -18,7 +18,6 @@ from dongri_define import *
 from dongri_pic import *
 import subprocess
 import socket
-from dongri_pic import _imported
 from datetime import datetime, timedelta
 import datetime as dt
 
@@ -105,14 +104,7 @@ def task_acceptTask():
         myTimeSleep_big()
 
 
-def init():
-    global _imported
-    if not _imported:
-        acceptTask = threading.Thread(target=task_acceptTask)
-        acceptTask.daemon = True
-        if acceptTask.is_alive() == False:
-            acceptTask.start()
-            _imported = True
+
 
 
 class basic_operate: