summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-03 06:58:01 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 10:26:52 (GMT)
commitffe654207b1131a6e4d2038200154d0ea8571590 (patch)
tree27e30431c82bc42a11c11134d29a4bd080ccb63f
parenta4bbc44f16e25e1d7a2b6a5f55aad0a02ea12bdb (diff)
Url.__findServerProgram(): rename local var args to result
-rw-r--r--src/login.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/login.py b/src/login.py
index d08f4df..0a04146 100644
--- a/src/login.py
+++ b/src/login.py
@@ -179,23 +179,23 @@ class Url(unicode):
@staticmethod
def __findServerProgram():
"""how should we start the server?"""
- args = []
+ result = []
serverPython = 'python3' if Options.server3 else 'python'
if sys.argv[0].endswith('kajongg.py'):
tryServer = sys.argv[0].replace('.py', 'server.py')
if os.path.exists(tryServer):
- args = [serverPython, tryServer]
+ result = [serverPython, tryServer]
elif sys.argv[0].endswith('kajongg.pyw'):
tryServer = sys.argv[0].replace('.pyw', 'server.py')
if os.path.exists(tryServer):
- args = [serverPython, tryServer]
+ result = [serverPython, tryServer]
elif sys.argv[0].endswith('kajongg.exe'):
tryServer = sys.argv[0].replace('.exe', 'server.exe')
if os.path.exists(tryServer):
- args = [tryServer]
+ result = [tryServer]
else:
- args = ['kajonggserver']
- return args
+ result = ['kajonggserver']
+ return result
def __startLocalServer(self):
"""start a local server"""