Пример #1
0
import os
import sys

from openscad_dxf.inkutils import find_inkscape_path

# Add inkscape extensions to path
sys.path.append(
    os.path.join(find_inkscape_path(path_type='share'), 'extensions'))
Пример #2
0
import os
import sys

from openscad_dxf.inkutils import find_inkscape_path


# Add inkscape extensions to path
sys.path.append(os.path.join(
    find_inkscape_path(path_type='share'), 'extensions'
))
Пример #3
0
 def setUp(self):
     """ Get the inkscape version so we can know which dxfs to compare """
     inkscape = find_inkscape_path()
     out, _ = Popen([inkscape, '--version'], stdout=PIPE).communicate()
     self.inkscape_version = '.'.join(out.split(' ')[1].split('.')[:2])
 def setUp(self):
     """ Get the inkscape version so we can know which dxfs to compare """
     inkscape = find_inkscape_path()
     out, _ = Popen([inkscape, '--version'], stdout=PIPE).communicate()
     self.inkscape_version = '.'.join(out.split(' ')[1].split('.')[:2])