better system for deployment

This commit is contained in:
2024-09-03 17:31:03 +02:00
parent 521af5251c
commit 8bfeaabf6f
+4 -4
View File
@@ -1,11 +1,11 @@
import os
env = os.environ.copy()
print(env)
from config import * from config import *
from subprocess import run as run_start from subprocess import run as run_start
from threading import Thread from threading import Thread
env = os.environ.copy()
print(env)
run = lambda a: run_start(a, env=env) run = lambda a: run_start(a, env=env)
t1 = Thread(target=run, args=(['./.venv/bin/python3', 'invite_sys.py'],)) t1 = Thread(target=run, args=(['./.venv/bin/python3', 'invite_sys.py'],))