print(indent+"print_file WARNING: "+str(line_count)+" line(s) in '"+path+"'")
#print(indent+"print_file WARNING: "+str(line_count)+" line(s) in '"+path+"'")
else:
#else:
#print(indent+"# "+str(line_count)+" line(s) in '"+path+"'")
#print(indent+"# "+str(line_count)+" line(s) in '"+path+"'")
else:
else:
print(indent+"print_file: file does not exist")
print(indent+"print_file: file does not exist")
@ -767,8 +767,10 @@ class MTChunks:
ifos.path.isfile(tmp_png_path):
ifos.path.isfile(tmp_png_path):
os.remove(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
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):
ifos.path.isfile(tmp_png_path):
result=True
result=True
this_chunk.metadata["is_empty"]=False
try:
try:
if(os.path.isfile(dest_png_path)):
if(os.path.isfile(dest_png_path)):
os.remove(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+"'")
print(indent+"#EOF: "+str(line_count)+" line(s) in '"+genresult_path+"'")
try:
try:
self.prepare_chunk_meta(chunk_luid)# DOES load existing yml if exists
self.prepare_chunk_meta(chunk_luid)# DOES load existing yml if exists