PEP 8 compliance.
This commit is contained in:
parent
e5656378ac
commit
3f1dad2b43
1 changed files with 23 additions and 14 deletions
|
@ -2,13 +2,19 @@ import dcc.doom_base
|
|||
import dcc.config
|
||||
import subprocess
|
||||
|
||||
|
||||
class Eureka(dcc.doom_base.WadMap):
|
||||
def take_action(self, parsed_args):
|
||||
iwad = self.iwad_path(parsed_args.wad)
|
||||
pwadpath = self.pwads.joinpath(parsed_args.wad)
|
||||
mw = list(pwadpath.glob('*{}*.wad'.format(parsed_args.wad), case_sensitive=False))
|
||||
mw = list(pwadpath.glob(
|
||||
'*{}*.wad'.format(parsed_args.wad), case_sensitive=False
|
||||
))
|
||||
if len(mw) != 1:
|
||||
raise Exception("Unable to guess at main pwad for wad {}.".format(parsed_args.wad))
|
||||
raise Exception(
|
||||
f"Unable to guess at main pwad for wad {parsed_args.wad}."
|
||||
)
|
||||
|
||||
complevel = self.complevel()
|
||||
port = "vanilla"
|
||||
if complevel == "9":
|
||||
|
@ -16,4 +22,7 @@ class Eureka(dcc.doom_base.WadMap):
|
|||
if complevel == "11" or complevel == "21":
|
||||
port = "mbf"
|
||||
|
||||
subprocess.run(["eureka"] + ["-iwad", iwad] + ["-w", parsed_args.map] + ["-p", port] + [mw[0]])
|
||||
subprocess.run(
|
||||
["eureka"] + ["-iwad", iwad] + ["-w", parsed_args.map]
|
||||
+ ["-p", port] + [mw[0]]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue