Yaron Koresh commited on
Commit
27a4916
·
verified ·
1 Parent(s): 472206c

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +4 -4
app2.py CHANGED
@@ -58,10 +58,6 @@ formatter = logging.Formatter('\n >>> [%(levelname)s] %(asctime)s %(name)s: %(me
58
  handler2.setFormatter(formatter)
59
  root.addHandler(handler2)
60
 
61
- # spawn
62
-
63
- mp.set_start_method("spawn", force=True)
64
-
65
  # data
66
 
67
  last_motion=None
@@ -413,6 +409,10 @@ def pre():
413
  # entry
414
 
415
  def entry():
 
 
 
 
416
  pre[32,32]()
417
  ui[32,32]()
418
 
 
58
  handler2.setFormatter(formatter)
59
  root.addHandler(handler2)
60
 
 
 
 
 
61
  # data
62
 
63
  last_motion=None
 
409
  # entry
410
 
411
  def entry():
412
+
413
+ os.chdir(os.path.abspath(os.path.dirname(__file__)))
414
+ mp.set_start_method("spawn", force=True)
415
+
416
  pre[32,32]()
417
  ui[32,32]()
418