mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-28 19:16:16 +00:00
Bendover for PyLint
This commit is contained in:
parent
e784ca3011
commit
b426a6f6c4
8 changed files with 65 additions and 48 deletions
17
run.py
17
run.py
|
@ -1,3 +1,10 @@
|
|||
"""
|
||||
Run script for OnlyLegs
|
||||
"""
|
||||
from setup.args import PORT, ADDRESS, WORKERS, DEBUG
|
||||
from setup.configuration import Configuration
|
||||
|
||||
|
||||
print("""
|
||||
___ _ _
|
||||
/ _ \ _ __ | |_ _| | ___ __ _ ___
|
||||
|
@ -9,10 +16,6 @@ Created by Fluffy Bean - Version 23.03.20
|
|||
""")
|
||||
|
||||
|
||||
from setup.args import PORT, ADDRESS, WORKERS, DEBUG
|
||||
from setup.configuration import Configuration
|
||||
|
||||
|
||||
Configuration() # Run pre-checks
|
||||
|
||||
|
||||
|
@ -25,15 +28,15 @@ if DEBUG:
|
|||
|
||||
create_app().run(host=ADDRESS, port=PORT, debug=True, threaded=True)
|
||||
else:
|
||||
from setup.runner import OnlyLegs
|
||||
from setup.runner import OnlyLegs # pylint: disable=C0412
|
||||
|
||||
# If no address is specified, bind the server to all interfaces
|
||||
if not ADDRESS:
|
||||
ADDRESS = '0.0.0.0'
|
||||
|
||||
|
||||
options = {
|
||||
'bind': f'{ADDRESS}:{PORT}',
|
||||
'workers': WORKERS,
|
||||
}
|
||||
|
||||
|
||||
OnlyLegs(options).run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue