minor fixes
-don't show print subprocess commands to py-interpreter.log
This commit is contained in:
parent
3969e38d51
commit
30970598fe
2 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,7 @@ def run_process(command):
|
||||||
"""
|
"""
|
||||||
Run subprocess and return "return code"
|
Run subprocess and return "return code"
|
||||||
"""
|
"""
|
||||||
p = Popen(command)
|
p = Popen(command, stdout=PIPE, stderr=PIPE)
|
||||||
return os.waitpid(p.pid, 0)[1]
|
return os.waitpid(p.pid, 0)[1]
|
||||||
|
|
||||||
def get_mime_type(file_path):
|
def get_mime_type(file_path):
|
||||||
|
|
|
@ -18,7 +18,6 @@ class SilanAnalyzer(Thread):
|
||||||
def start_silan(apc, logger):
|
def start_silan(apc, logger):
|
||||||
me = SilanAnalyzer(apc, logger)
|
me = SilanAnalyzer(apc, logger)
|
||||||
me.start()
|
me.start()
|
||||||
me.join()
|
|
||||||
|
|
||||||
def __init__(self, apc, logger):
|
def __init__(self, apc, logger):
|
||||||
Thread.__init__(self)
|
Thread.__init__(self)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue