Am Mittwoch, den 13.09.2017, 11:22 +0200 schrieb Jürgen Spitzmüller: > Am Mittwoch, den 13.09.2017, 09:59 +0200 schrieb Stephan Witt: > > I fear the detection of Inkscape on Mac is not correct. The python > > scripts assume the binary is inkscape if not on windows. > > Then we should fix the checkInkscape() routine in configure.py. What > do > you need specifically? Full path? How is it determined on the Mac? > Does > "type -a -p inkscape-bin" work?
Given the above is true, then the attached patch should work. Can you check that, please? Jürgen
diff --git a/lib/configure.py b/lib/configure.py index ec033192bd..6a3af0cbe3 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -493,7 +493,13 @@ def checkDTLtools(): return dtl_tools def checkInkscape(): - ''' Check whether Inkscape is available and return the full path (Windows only) ''' + ''' Check whether Inkscape is available and return the full path for Windows and Mac ''' + if sys.platform == "darwin": + inkscape_loc = cmdOutput('type -p inkscape') + if not inkscape_loc: + inkscape_loc = cmdOutput('type -p inkscape-bin') + if inkscape_loc: + return inkscape_loc if os.name != 'nt': return 'inkscape' if sys.version_info[0] < 3:
signature.asc
Description: This is a digitally signed message part