mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-06 04:41:54 +02:00
Issue #24: fix script command.
This commit is contained in:
parent
079a04afdf
commit
42040c8082
2 changed files with 5 additions and 2 deletions
|
@ -165,13 +165,16 @@ def draw_icons() -> None:
|
|||
individual SVG files.
|
||||
"""
|
||||
os.makedirs("icon_set", exist_ok=True)
|
||||
os.makedirs("icon_set/ids", exist_ok=True)
|
||||
os.makedirs("icon_set/names", exist_ok=True)
|
||||
scheme: Scheme = Scheme(Path("scheme/default.yml"))
|
||||
extractor: ShapeExtractor = ShapeExtractor(
|
||||
Path("icons/icons.svg"), Path("icons/config.json")
|
||||
)
|
||||
collection: IconCollection = IconCollection.from_scheme(scheme, extractor)
|
||||
collection.draw_grid(Path("icon_grid.svg"))
|
||||
collection.draw_icons(Path("icon_set"))
|
||||
collection.draw_icons(Path("icon_set/ids"))
|
||||
collection.draw_icons(Path("icon_set/names"), by_name=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue