summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2023-01-20 17:28:13 +0100
committerLex Neva <github.com@lexneva.name>2023-02-20 15:27:55 -0500
commit338c1c7bbc893afdcc7ef1d1cc88c66789b9aa4c (patch)
tree8cd980d801b4fa2727074153f224641afcf1cd54
parent847e133f97d570e2967dfa7dcfc16a212dc2bbbc (diff)
fix tile names
-rw-r--r--lib/tiles.py6
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)