diff --git a/apps/mylib/application.py b/apps/mylib/application.py index e2cb76a..d668a26 100644 --- a/apps/mylib/application.py +++ b/apps/mylib/application.py @@ -148,7 +148,7 @@ for i, img in enumerate(map_img_list): img_path = Path(path) / Path("map{}.pgm".format(i)) img.save(str(img_path.resolve())) - map_yaml_list[i]["image"] = str(img_path.resolve()) + map_yaml_list[i]["image"] = "./"+str(img_path.name) str_yaml = "" line = "\n" for key, val in map_yaml_list[i].items(): diff --git a/apps/mylib/tools.py b/apps/mylib/tools.py index 61d3172..5fbaab1 100644 --- a/apps/mylib/tools.py +++ b/apps/mylib/tools.py @@ -1,5 +1,4 @@ import tkinter as tk -from turtle import fillcolor import numpy as np import ruamel.yaml import math