Skip to content

Commit 0ca2c49

Browse files
committed
Merge remote-tracking branch 'origin/master' into dev
2 parents 0b39da2 + 4958e73 commit 0ca2c49

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

inkcut/core/svg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def parseTransform(self, e):
170170
return t
171171

172172
m = re.match(
173-
"(translate|scale|rotate|skewX|skewY|matrix)\s*\(([^)]*)\)\s*,?",
173+
r"(translate|scale|rotate|skewX|skewY|matrix)\s*\(([^)]*)\)\s*,?",
174174
trans)
175175
if m is None:
176176
return t

inkcut/ui/plugin.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212
import sys
1313
import enaml
14-
import pkg_resources
14+
import importlib.metadata
1515
from datetime import datetime
1616
from atom.api import Atom, Int, List, Str, Instance, Bool, Enum, Dict
1717
from enaml.qt.q_resource_helpers import get_cached_qicon
@@ -112,8 +112,8 @@ def load_plugins(self):
112112
plugins.append(MonitorManifest)
113113

114114
#: Load any plugins defined as extension points
115-
for entry_point in pkg_resources.iter_entry_points(
116-
group='inkcut.plugin', name=None):
115+
for entry_point in importlib.metadata.entry_points(
116+
group='inkcut.plugin'):
117117
plugins.append(entry_point.load())
118118

119119
#: Install all of them

plugins/inkscape/inkcut4inkscape.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
"""
44
Inkcut, Plot HPGL directly from Inkscape.

plugins/inkscape/inkcut_cut.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
"""
44
Inkcut, Plot HPGL directly from Inkscape.

plugins/inkscape/inkcut_open.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
"""
44
Inkcut, Plot HPGL directly from Inkscape.

0 commit comments

Comments
 (0)