summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--display/Client.py13
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()