Commit bde2f717 authored by João Porto's avatar João Porto

correcao do erro caso a pasta XML nao esteja presente

parent ba941a4c
......@@ -1085,6 +1085,8 @@ class Act(object):
current_path=current_path[3::1]
current_path=current_path[-1::-1]
current_path=current_path+"data/XML"
if(not os.path.exists(current_path)):
os.makedirs(current_path)
shutil.move(os.getcwd()+"/{}.xml".format(self._image_name),current_path+"/{}.xml".format(self._image_name))
def run_xml_converter(self):
......@@ -1165,6 +1167,8 @@ class Act(object):
current_path=current_path[3::1]
current_path=current_path[-1::-1]
current_path=current_path+"data/XML"
if(not os.path.exists(current_path)):
os.makedirs(current_path)
shutil.move(os.getcwd()+"/{}.xml".format(file),current_path+"/{}.xml".format(file))
print("Processo finalizado")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment