exit 1
end
+if not "inkscape".program_is_in_path then
+ print "This tool needs the external program `inkscape`, make sure it is installed and in your PATH."
+ exit 1
+end
+
var drawing = rest.first
if not drawing.file_exists then
stderr.write "Source drawing file '{drawing}' does not exist."