summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/extensions/base.py5
-rw-r--r--requirements.txt1
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/extensions/base.py b/lib/extensions/base.py
index 3c16a11c..e0bf4131 100644
--- a/lib/extensions/base.py
+++ b/lib/extensions/base.py
@@ -7,7 +7,6 @@ import os
import inkex
from lxml.etree import Comment
-from stringcase import snakecase
from ..commands import is_command, layer_commands
from ..elements import EmbroideryElement, nodes_to_elements
@@ -32,7 +31,9 @@ class InkstitchExtension(inkex.EffectExtension):
@classmethod
def name(cls):
- return snakecase(cls.__name__)
+ # Convert CamelCase to snake_case
+ return cls.__name__[0].lower() + ''.join([x if x.islower() else f'_{x.lower()}'
+ for x in cls.__name__[1:]])
def hide_all_layers(self):
for g in self.document.getroot().findall(SVG_GROUP_TAG):
diff --git a/requirements.txt b/requirements.txt
index 7697d508..14d72270 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,7 +18,6 @@ requests
# we need already submitted fixes - so let's grab them from the github repository
colormath @ git+https://github.com/gtaylor/python-colormath.git@4a076831fd5136f685aa7143db81eba27b2cd19a
-stringcase
flask>=2.2.0
fonttools
trimesh>=3.15.2