diff options
author | Diego Roversi <diegor@tiscali.it> | 2019-09-20 11:13:30 +0200 |
---|---|---|
committer | Diego Roversi <diegor@tiscali.it> | 2019-09-20 11:13:45 +0200 |
commit | 1410af0b007b2fad99088dbdf3f302bc9985e9f8 (patch) | |
tree | 8b84104aa64de37efb445d00ea296cf02fcf0dd5 | |
parent | 467868432601ac9f0ba76506bf0f33b79d428ac3 (diff) |
fix local import, fix temp variable named as 'int'
-rw-r--r-- | display/Client.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/display/Client.py b/display/Client.py index 275c663..e3e6e8b 100644 --- a/display/Client.py +++ b/display/Client.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python + # __________ import os, sys @@ -16,8 +16,8 @@ LOCALDIR = os.path.dirname(os.path.abspath(LOCALDIR)) sys.path.insert(0, os.path.dirname(LOCALDIR)) sys.path.insert(0, LOCALDIR) import common -from . import pclient -from . import modes +import pclient +import modes UdpLookForServer = [ @@ -61,9 +61,9 @@ def parse_cmdline(argv): longopts = ['display=', 'sound=', 'music=', 'help', 'tcp', 'udp', 'cfg=', 'metaserver', 'port='] for info in modes.graphicmodeslist() + modes.soundmodeslist(): - short, int = info.getformaloptions() - shortopts += short - longopts += int + s, i = info.getformaloptions() + shortopts += s + longopts += i try: from getopt import gnu_getopt as getopt except ImportError: @@ -131,6 +131,7 @@ def parse_cmdline(argv): elif len(hosts) == 2: host, port = hosts try: + #print(f"port = {port} int={int}",file=sys.stderr) port = int(port) except ValueError: usage() |