toutiao/start.py

10 lines
265 B
Python
Raw Permalink Normal View History

2019-01-04 08:42:23 +00:00
#! /usr/bin/python3
2019-01-04 08:41:15 +00:00
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))