Skip to content

Commit

Permalink
Use os module directly instead of inkex.os
Browse files Browse the repository at this point in the history
  • Loading branch information
frmdstryr committed Jan 26, 2020
1 parent 853fa8e commit b92e1db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inkscape/inkcut.py
Expand Up @@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
"""

import os
import inkex
from subprocess import Popen, PIPE
from shutil import copy2
Expand All @@ -35,7 +35,7 @@ def contains_text(nodes):
return False

def convert_objects_to_paths(file, document):
tempfile = inkex.os.path.splitext(file)[0] + "-prepare.svg"
tempfile = os.path.splitext(file)[0] + "-prepare.svg"
# tempfile is needed here only because we want to force the extension to be .svg
# so that we can open and close it silently
copy2(file, tempfile)
Expand Down

0 comments on commit b92e1db

Please sign in to comment.