MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / run

Method run

tools/sconsui.py:69–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 self.child = None
68
69 def run(self):
70 global executor, builder, lock
71
72 if platform.system() == 'Windows':
73 try:
74 from win32spawn import Win32Spawn
75 subprocess = Win32Spawn(self.cmd)
76 subprocess.start_pipe()
77
78 builder.progressbar.start()
79 while not subprocess.is_terminated or subprocess.qsize() > 0:
80 try:
81 line = subprocess.get(timeout=1)
82 line = line.replace('\r', '')
83 if line:
84 lock.acquire()
85 builder.output.see(END)
86 builder.output.insert(END, line)
87 lock.release()
88 except:
89 pass
90
91 builder.progressbar.stop()
92 except:
93 pass
94
95 executor = None
96 if builder.is_makeing_project:
97 builder.output.insert(END, 'Done')
98 builder.is_makeing_project = False
99
100def ExecCmd(cmd):
101 global executor

Callers 6

_run_commandMethod · 0.45
get_new_fileMethod · 0.45
checkMethod · 0.45
get_git_user_nameFunction · 0.45
diffFunction · 0.45

Calls 4

Win32SpawnClass · 0.90
startMethod · 0.80
releaseMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected