# -*- coding: utf-8 -*-
try:
import scour
except Exception as e:
inkex.errormsg("Failed to import Python module 'scour'.\nPlease make sure it is installed (e.g. using 'pip install scour' or 'sudo apt-get install python-scour') and try again.")
try:
import six
except Exception as e:
inkex.errormsg("Failed to import Python module 'six'.\nPlease make sure it is installed (e.g. using 'pip install six' or 'sudo apt-get install python-six') and try again.")
self.OptionParser.add_option("--simplify-colors", type="inkbool", action="store", dest="simple_colors")
self.OptionParser.add_option("--group-collapsing", type="inkbool", action="store", dest="group_collapse")
self.OptionParser.add_option("--create-groups", type="inkbool", action="store", dest="group_create")
self.OptionParser.add_option("--enable-id-stripping", type="inkbool", action="store", dest="strip_ids")
self.OptionParser.add_option("--shorten-ids-prefix", type="string", action="store", dest="shorten_ids_prefix", default="")
self.OptionParser.add_option("--embed-rasters", type="inkbool", action="store", dest="embed_rasters")
self.OptionParser.add_option("--keep-unreferenced-defs", type="inkbool", action="store", dest="keep_defs")
self.OptionParser.add_option("--keep-editor-data", type="inkbool", action="store", dest="keep_editor_data")
self.OptionParser.add_option("--remove-metadata", type="inkbool", action="store", dest="remove_metadata")
self.OptionParser.add_option("--strip-xml-prolog", type="inkbool", action="store", dest="strip_xml_prolog")
self.OptionParser.add_option("--strip-xml-space", type="inkbool", action="store", dest="strip_xml_space_attribute")
self.OptionParser.add_option("--protect-ids-noninkscape", type="inkbool", action="store", dest="protect_ids_noninkscape")
self.OptionParser.add_option("--protect-ids-list", type="string", action="store", dest="protect_ids_list")
self.OptionParser.add_option("--protect-ids-prefix", type="string", action="store", dest="protect_ids_prefix")
self.OptionParser.add_option("--enable-viewboxing", type="inkbool", action="store", dest="enable_viewboxing")
self.OptionParser.add_option("--enable-comment-stripping", type="inkbool", action="store", dest="strip_comments")
self.OptionParser.add_option("--renderer-workaround", type="inkbool", action="store", dest="renderer_workaround")
try:
except Exception as e:
if __name__ == '__main__':
e = ScourInkscape()