We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e10b88f commit cf190eeCopy full SHA for cf190ee
bit/__init__.py
@@ -6,6 +6,7 @@
6
import sys
7
from subprocess import Popen, PIPE, STDOUT
8
import stat
9
+import shlex
10
11
import bit.config as config
12
import bit.git as git
@@ -15,8 +16,16 @@
15
16
import multiprocessing as mp
17
18
def worker(call):
- os.system(call)
19
- return call
+ out=Popen(shlex.split(call), stdout=PIPE, stdin=PIPE, stderr=PIPE)
20
+ message=out.communicate()
21
+ out.stdout.close()
22
+ out.stdin.close()
23
+ out.stderr.close()
24
+ try:
25
+ out.kill()
26
+ except:
27
+ pass
28
+ return "\n********************\n"+call.split(" ")[-1]+"\n"+message[0]+"\n"+message[1]
29
30
def main():
31
@@ -65,6 +74,7 @@ def main():
65
74
results=[]
66
75
for ff in funclist:
67
76
res=ff.get()
77
+ print(res)
68
78
results.append(res)
69
79
70
80
if args.config:
0 commit comments