minor fixes

-don't show print subprocess commands to py-interpreter.log
This commit is contained in:
Martin Konecny 2013-03-08 12:39:29 -05:00
parent 3969e38d51
commit 30970598fe
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@ def run_process(command):
"""
Run subprocess and return "return code"
"""
p = Popen(command)
p = Popen(command, stdout=PIPE, stderr=PIPE)
return os.waitpid(p.pid, 0)[1]
def get_mime_type(file_path):

View File

@ -18,7 +18,6 @@ class SilanAnalyzer(Thread):
def start_silan(apc, logger):
me = SilanAnalyzer(apc, logger)
me.start()
me.join()
def __init__(self, apc, logger):
Thread.__init__(self)