mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-29 10:56:06 +00:00
Code cleanup
Also forced the CI to make a new build
This commit is contained in:
parent
abeb1164a8
commit
2a2592a74f
|
@ -282,6 +282,8 @@ def run_server(port, host="127.0.0.1", portable=None):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
port = 6595
|
port = 6595
|
||||||
|
host = "127.0.0.1"
|
||||||
|
portable = None
|
||||||
if len(sys.argv) >= 2:
|
if len(sys.argv) >= 2:
|
||||||
try:
|
try:
|
||||||
port = int(sys.argv[1])
|
port = int(sys.argv[1])
|
||||||
|
@ -289,10 +291,6 @@ if __name__ == '__main__':
|
||||||
pass
|
pass
|
||||||
if '--portable' in sys.argv:
|
if '--portable' in sys.argv:
|
||||||
portable = path.join(path.dirname(path.realpath(__file__)), 'config')
|
portable = path.join(path.dirname(path.realpath(__file__)), 'config')
|
||||||
else:
|
|
||||||
portable = None
|
|
||||||
if '--host' in sys.argv:
|
if '--host' in sys.argv:
|
||||||
host = str(sys.argv[sys.argv.index("--host")+1])
|
host = str(sys.argv[sys.argv.index("--host")+1])
|
||||||
else:
|
|
||||||
host = "127.0.0.1"
|
|
||||||
run_server(port, host, portable)
|
run_server(port, host, portable)
|
||||||
|
|
Loading…
Reference in a new issue