mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
To allow different cluster daemon client
This commit is contained in:
parent
3758bbf5cd
commit
98bf9bd0a7
@ -15,8 +15,12 @@ class ClusterClient(DirectObject.DirectObject):
|
||||
def __init__(self, configList, clusterSyncFlag):
|
||||
# First start up servers using direct daemon
|
||||
# What is the name of the client machine?
|
||||
clusterDaemonClient = os.popen('uname -n').read()
|
||||
clusterDaemonClient = clusterDaemonClient.replace('\n', '')
|
||||
clusterDaemonClient = base.config.GetString(
|
||||
'cluster-daemon-client', 'None')
|
||||
if clusterDaemonClient == 'None':
|
||||
clusterDaemonClient = os.popen('uname -n').read()
|
||||
clusterDaemonClient = clusterDaemonClient.replace('\n', '')
|
||||
print 'CLIENT', clusterDaemonClient
|
||||
# What daemon port are we using to communicate between client/servers
|
||||
clusterDaemonPort = base.config.GetInt(
|
||||
'cluster-daemon-port', CLUSTER_DAEMON_PORT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user