ScreamingTaco / inkscape_app_icon_generator

Inkscape extension to generate app icon sizes
GNU General Public License v3.0
23 stars 8 forks source link

Depreciation warnings #6

Closed JohnDovey closed 2 years ago

JohnDovey commented 3 years ago

Got a bunch of depreciation warnings.

app_icon.py:50: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-k', '--ios_icons', action = 'store',
app_icon.py:53: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-i', '--ios_path', action = 'store',
app_icon.py:56: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-m', '--android_mipmap', action = 'store',
app_icon.py:59: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-d', '--android_drawable', action = 'store',
app_icon.py:62: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-a', '--android_path', action = 'store',
app_icon.py:65: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-t', '--android_tvdpi', action = 'store',
app_icon.py:68: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-b', '--android_basepx', action = 'store',
app_icon.py:71: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-x', '--windows_icons', action = 'store',
app_icon.py:74: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-c', '--windows_one_ico_file', action = 'store',
app_icon.py:77: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-w', '--windows_path', action = 'store',
app_icon.py:81: DeprecationWarning: Effect.OptionParser or `optparse` has been deprecated and replaced with `argparser`.You must change `self.OptionParser.add_option` to `self.arg_parser.add_argument`; the arguments are similar.
  self.OptionParser.add_option('-n', '--name', action = 'store',
app_icon.py:295: DeprecationWarning: Effect.affect is now `Effect.run()`. The `output` argument has changed.
  effect.affect()
app_icon.py:279: DeprecationWarning: Effect.unittouu is now a method in the svg document. Use `self.svg.unittouu(str)` instead.
  width  = self.unittouu(svg.get('width'))
app_icon.py:280: DeprecationWarning: Effect.unittouu is now a method in the svg document. Use `self.svg.unittouu(str)` instead.

Errors encountered. Please fix them and try again.
JohnDovey commented 3 years ago

Forgot to mention version:

1.0.2 (e86c870879, 2021-01-15, custom)

ScreamingTaco commented 2 years ago

I think #5 addresses this. Feel free to open another issue if not.