From 2a2592a74f68a34f6a5dbb19c39ab06516611c7f Mon Sep 17 00:00:00 2001 From: RemixDev Date: Fri, 12 Jun 2020 11:30:03 +0200 Subject: [PATCH] Code cleanup Also forced the CI to make a new build --- server.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index b6b38fb..25c3605 100644 --- a/server.py +++ b/server.py @@ -282,6 +282,8 @@ def run_server(port, host="127.0.0.1", portable=None): if __name__ == '__main__': port = 6595 + host = "127.0.0.1" + portable = None if len(sys.argv) >= 2: try: port = int(sys.argv[1]) @@ -289,10 +291,6 @@ if __name__ == '__main__': pass if '--portable' in sys.argv: portable = path.join(path.dirname(path.realpath(__file__)), 'config') - else: - portable = None if '--host' in sys.argv: host = str(sys.argv[sys.argv.index("--host")+1]) - else: - host = "127.0.0.1" run_server(port, host, portable)