mirror of
https://github.com/r4sas/Niflheim-api
synced 2025-01-12 16:08:02 +00:00
turn sys.argv[2] into int
had to change the accepted len of sys.argv to 3 instead of 4 as this was too much
This commit is contained in:
parent
01f7e09ce8
commit
f7992b180e
@ -8,10 +8,10 @@ SERVER = "y.yakamo.org"
|
|||||||
|
|
||||||
#gives the option to get data from an external server instead and send that
|
#gives the option to get data from an external server instead and send that
|
||||||
#if no options given it will default to localhost instead
|
#if no options given it will default to localhost instead
|
||||||
#if len(sys.argv) == 3:
|
if len(sys.argv) == 3:
|
||||||
# host_port = (sys.argv[1], sys.argv[2])
|
host_port = (sys.argv[1], int(sys.argv[2]))
|
||||||
#else:
|
else:
|
||||||
# host_port = ('localhost', 9001)
|
host_port = ('localhost', 9001)
|
||||||
|
|
||||||
host_port = ('localhost', 9001)
|
host_port = ('localhost', 9001)
|
||||||
def send_view_to_server(tosend):
|
def send_view_to_server(tosend):
|
||||||
|
Loading…
Reference in New Issue
Block a user