diff options
| author | Kaalleen <reni@allenka.de> | 2023-01-20 17:28:13 +0100 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2023-02-20 15:27:55 -0500 |
| commit | 338c1c7bbc893afdcc7ef1d1cc88c66789b9aa4c (patch) | |
| tree | 8cd980d801b4fa2727074153f224641afcf1cd54 /lib | |
| parent | 847e133f97d570e2967dfa7dcfc16a212dc2bbbc (diff) | |
fix tile names
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tiles.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tiles.py b/lib/tiles.py index 2bef7a19..17002ffa 100644 --- a/lib/tiles.py +++ b/lib/tiles.py @@ -19,7 +19,7 @@ class Tile: def _load_tile(self, tile_path): self.tile_svg = inkex.load_svg(tile_path) self.tile_path = tile_path - self.name = self._get_name(self.tile_svg, tile_path) + self.name = self._get_name(tile_path) self.tile = None self.width = None self.height = None @@ -32,8 +32,8 @@ class Tile: __str__ = __repr__ - def _get_name(self, tile_svg, tile_path): - return os.path.splitext(os.path.basename(tile_path)[0]) + def _get_name(self, tile_path): + return os.path.splitext(os.path.basename(tile_path))[0] def _load(self): self._load_paths(self.tile_svg) |
