summaryrefslogtreecommitdiff
path: root/inkstitch.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-08-05 20:35:21 -0400
committerGitHub <noreply@github.com>2018-08-05 20:35:21 -0400
commit3e37db9dec0222978f615f6d33874a31d76000c3 (patch)
tree499acace3107ba39a093c18f0debc6283c68ac63 /inkstitch.py
parent50f7589d682e060c8d12a6fd30822fbeb7f2212a (diff)
parenteebc8fdc1252a3206982c818685e50a4a75a4398 (diff)
Merge pull request #252 from inkstitch/lexelby-convert-to-satin
convert path to satin
Diffstat (limited to 'inkstitch.py')
-rw-r--r--inkstitch.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/inkstitch.py b/inkstitch.py
index a9ce829e..2e21d964 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -10,7 +10,11 @@ parser.add_argument("--extension")
my_args, remaining_args = parser.parse_known_args()
extension_name = my_args.extension
-extension_class = getattr(extensions, extension_name.capitalize())
+
+# example: foo_bar_baz -> FooBarBaz
+extension_class_name = extension_name.title().replace("_", "")
+
+extension_class = getattr(extensions, extension_class_name)
extension = extension_class()
exception = None