Fix import_svg with folders

This commit is contained in:
Diego Pereyra 2023-06-10 16:22:44 -03:00
parent 3b8fd1c04c
commit 76f2bb27aa

View file

@ -149,7 +149,7 @@ def import_svg_as_buildline_code(file_name: str) -> tuple[str, str]:
],
}
paths, _path_attributes = svg2paths(file_name)
builder_name = file_name.split(".")[0]
builder_name = os.path.basename(file_name).split(".")[0]
buildline_code = [
"from build123d import *",
f"with BuildLine() as {builder_name}:",