toutiao/start.py
2019-01-04 16:41:15 +08:00

9 lines
245 B
Python
Executable File

import glob
import os
if __name__ == "__main__":
for p in glob.glob("./*"):
if os.path.isdir(p):
bn = os.path.basename(p)
os.system("cd {0} && go build ./ && screen -L -dmS {0} ./{0}".format(bn))