Spaces:
Running
Running
Update app.py
Browse files
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")
|