If the complevel file doesn't exist, try to read the complevel out of the config instead.
This commit is contained in:
parent
3fde5791a3
commit
d539490898
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ class WadMap(Wad):
|
|||
def complevel(self):
|
||||
complevel = self.pwads.joinpath(self.wad).joinpath("complevel")
|
||||
if not complevel.exists():
|
||||
complevel = self._config.get("complevel")
|
||||
if complevel is not None:
|
||||
return complevel
|
||||
raise Exception("No complevel set for wad {}.".format(self.wad))
|
||||
|
||||
with io.open(complevel) as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue