Universally use double quotes for strings.
This commit is contained in:
parent
7925281ceb
commit
1ee4ea4dc6
3 changed files with 33 additions and 33 deletions
|
@ -11,8 +11,8 @@ class Base(Command):
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super().get_parser(prog_name)
|
parser = super().get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--doom', default=pathlib.Path.home().joinpath("doom"))
|
"--doom", default=pathlib.Path.home().joinpath("doom"))
|
||||||
parser.add_argument('--config-name', default='config.toml')
|
parser.add_argument("--config-name", default="config.toml")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def init_base(self, parsed_args):
|
def init_base(self, parsed_args):
|
||||||
|
|
|
@ -10,7 +10,7 @@ import tomlkit
|
||||||
class Wad(dcc.config.Base):
|
class Wad(dcc.config.Base):
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super().get_parser(prog_name)
|
parser = super().get_parser(prog_name)
|
||||||
parser.add_argument('wad')
|
parser.add_argument("wad")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def wad_init(self, parsed_args):
|
def wad_init(self, parsed_args):
|
||||||
|
@ -53,7 +53,7 @@ class Wad(dcc.config.Base):
|
||||||
def load_order(self):
|
def load_order(self):
|
||||||
wads = self._config.get("load_order")
|
wads = self._config.get("load_order")
|
||||||
if wads is None:
|
if wads is None:
|
||||||
wads = sorted(self.pwad_path.glob('*.wad', case_sensitive=False))
|
wads = sorted(self.pwad_path.glob("*.wad", case_sensitive=False))
|
||||||
else:
|
else:
|
||||||
wads = [self.pwad_path.joinpath(wad) for wad in wads]
|
wads = [self.pwad_path.joinpath(wad) for wad in wads]
|
||||||
return wads
|
return wads
|
||||||
|
@ -73,8 +73,8 @@ class Wad(dcc.config.Base):
|
||||||
class WadMap(Wad):
|
class WadMap(Wad):
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super().get_parser(prog_name)
|
parser = super().get_parser(prog_name)
|
||||||
parser.add_argument('map')
|
parser.add_argument("map")
|
||||||
parser.add_argument('-n', '--name', '--demo_name')
|
parser.add_argument("-n", "--name", "--demo_name")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def run(self, parsed_args):
|
def run(self, parsed_args):
|
||||||
|
@ -99,7 +99,7 @@ class WadMap(Wad):
|
||||||
if len(wads) > 0:
|
if len(wads) > 0:
|
||||||
args = args + ["-file"] + wads
|
args = args + ["-file"] + wads
|
||||||
|
|
||||||
dehs = sorted(self.pwad_path.glob('*.deh', case_sensitive=False))
|
dehs = sorted(self.pwad_path.glob("*.deh", case_sensitive=False))
|
||||||
if len(dehs) > 0:
|
if len(dehs) > 0:
|
||||||
args = args + ["-deh"] + dehs
|
args = args + ["-deh"] + dehs
|
||||||
|
|
||||||
|
|
52
setup.py
52
setup.py
|
@ -1,42 +1,42 @@
|
||||||
from setuptools import find_packages
|
from setuptools import find_packages
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
PROJECT = 'dcc'
|
PROJECT = "dcc"
|
||||||
|
|
||||||
VERSION = '0.0.1'
|
VERSION = "0.0.1"
|
||||||
|
|
||||||
long_description = ''
|
long_description = ""
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=PROJECT,
|
name=PROJECT,
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
description='Doom Command Center',
|
description="Doom Command Center",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
author='yrriban',
|
author="yrriban",
|
||||||
author_email='yrriban@gmail.com',
|
author_email="yrriban@gmail.com",
|
||||||
platforms=['Any'],
|
platforms=["Any"],
|
||||||
install_requires=['cliff'],
|
install_requires=["cliff"],
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': ['dcc=dcc.main:main'],
|
"console_scripts": ["dcc=dcc.main:main"],
|
||||||
'dcc': [
|
"dcc": [
|
||||||
'play = dcc.play:Play',
|
"play = dcc.play:Play",
|
||||||
'record = dcc.record:Record',
|
"record = dcc.record:Record",
|
||||||
'rib = dcc.rib:RIB',
|
"rib = dcc.rib:RIB",
|
||||||
'fabricate = dcc.fabricate:Fabricate',
|
"fabricate = dcc.fabricate:Fabricate",
|
||||||
'put = dcc.put:Put',
|
"put = dcc.put:Put",
|
||||||
'pb = dcc.pb:PB',
|
"pb = dcc.pb:PB",
|
||||||
'ss = dcc.ss:SS',
|
"ss = dcc.ss:SS",
|
||||||
'extract = dcc.extract:Extract',
|
"extract = dcc.extract:Extract",
|
||||||
'fetch = dcc.fetch:Fetch',
|
"fetch = dcc.fetch:Fetch",
|
||||||
'text = dcc.text:Text',
|
"text = dcc.text:Text",
|
||||||
'thumb = dcc.thumb:Thumb',
|
"thumb = dcc.thumb:Thumb",
|
||||||
'dsda = dcc.dsda:DSDA',
|
"dsda = dcc.dsda:DSDA",
|
||||||
'eureka = dcc.eureka:Eureka',
|
"eureka = dcc.eureka:Eureka",
|
||||||
'ls = dcc.ls:List',
|
"ls = dcc.ls:List",
|
||||||
'configure = dcc.configure:Configure',
|
"configure = dcc.configure:Configure",
|
||||||
'concat = dcc.concat:Concat',
|
"concat = dcc.concat:Concat",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue