pipe correction and some other small changes in test system

This commit is contained in:
Ilia Filippov
2013-10-01 18:01:29 +04:00
parent 1c858c34f7
commit b2cf0209b1
3 changed files with 14 additions and 8 deletions

View File

@@ -83,7 +83,8 @@ def print_debug(line, silent, filename):
sys.stdout.write(line)
sys.stdout.flush()
if os.environ.get("ISPC_HOME") != None:
write_to_file(os.environ["ISPC_HOME"] + os.sep + "notify_log.log", line)
if os.path.exists(os.environ.get("ISPC_HOME")):
write_to_file(os.environ["ISPC_HOME"] + os.sep + "notify_log.log", line)
if filename != "":
write_to_file(filename, line)