mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-18 23:31:51 -08:00
Fix import_svg with folders
This commit is contained in:
parent
3b8fd1c04c
commit
76f2bb27aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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}:",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue