izuemon commited on
Commit
775a8f3
Β·
verified Β·
1 Parent(s): 2adbbb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -10,14 +10,14 @@ watcher_process = None
10
  dmsender_process = None
11
 
12
  def start_watcher():
13
- global watcher_process
14
 
15
  if watcher_process is None or watcher_process.poll() is not None:
16
  watcher_process = subprocess.Popen(
17
  [sys.executable, "watcher.py"],
18
  stdout=sys.stdout,
19
  stderr=sys.stderr,
20
- env=os.environ, # ← 環咃倉数を引き碙ぐ
21
  )
22
  print("watcher.py γ‚’θ΅·ε‹•γ—γΎγ—γŸ")
23
 
@@ -30,6 +30,7 @@ def start_watcher():
30
  )
31
  print("dmsender.py γ‚’θ΅·ε‹•γ—γΎγ—γŸ")
32
 
 
33
  #----------
34
 
35
  @app.route("/drive.com/files")
 
10
  dmsender_process = None
11
 
12
  def start_watcher():
13
+ global watcher_process, dmsender_process
14
 
15
  if watcher_process is None or watcher_process.poll() is not None:
16
  watcher_process = subprocess.Popen(
17
  [sys.executable, "watcher.py"],
18
  stdout=sys.stdout,
19
  stderr=sys.stderr,
20
+ env=os.environ,
21
  )
22
  print("watcher.py γ‚’θ΅·ε‹•γ—γΎγ—γŸ")
23
 
 
30
  )
31
  print("dmsender.py γ‚’θ΅·ε‹•γ—γΎγ—γŸ")
32
 
33
+
34
  #----------
35
 
36
  @app.route("/drive.com/files")