print(indent+"print_file WARNING: "+str(line_count)+" line(s) in '"+path+"'")
else:
#if line_count==0:
#print(indent+"print_file WARNING: "+str(line_count)+" line(s) in '"+path+"'")
#else:
#print(indent+"# "+str(line_count)+" line(s) in '"+path+"'")
else:
print(indent+"print_file: file does not exist")
@ -767,8 +767,10 @@ class MTChunks:
ifos.path.isfile(tmp_png_path):
os.remove(tmp_png_path)
subprocess.call(cmd_string,shell=True)# TODO: remember not to allow arbitrary command execution, which could happen if input contains ';' when using shell=True
this_chunk=self.chunks[chunk_luid]
ifos.path.isfile(tmp_png_path):
result=True
this_chunk.metadata["is_empty"]=False
try:
if(os.path.isfile(dest_png_path)):
os.remove(dest_png_path)
@ -789,10 +791,15 @@ class MTChunks:
print(indent+"#EOF: "+str(line_count)+" line(s) in '"+genresult_path+"'")
try:
self.prepare_chunk_meta(chunk_luid)# DOES load existing yml if exists