Fix the extract command to work with the new nested config classes.
This commit is contained in:
parent
30baa49588
commit
114fec8f7e
1 changed files with 5 additions and 6 deletions
|
@ -1,14 +1,13 @@
|
|||
import dcc.config
|
||||
import dcc.doom_base
|
||||
import omg
|
||||
import numpy as np
|
||||
import wand.color
|
||||
import wand.image
|
||||
|
||||
|
||||
class Extract(dcc.config.base):
|
||||
class Extract(dcc.doom_base.Wad):
|
||||
def get_parser(self, prog_name):
|
||||
parser = super().get_parser(prog_name)
|
||||
parser.add_argument('wad')
|
||||
parser.add_argument('lump')
|
||||
return parser
|
||||
|
||||
|
@ -30,7 +29,7 @@ class Extract(dcc.config.base):
|
|||
) as img:
|
||||
img.transparent_color(wand.color.Color("#ff00ff"), 0.0)
|
||||
img.save(
|
||||
filename=self.output.joinpath(parsed_args.wad)
|
||||
filename=self.fabricate.joinpath(parsed_args.wad)
|
||||
.joinpath(parsed_args.lump + ".png")
|
||||
)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue