mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Pass cluster mode in server startup command instead of using config variable
This commit is contained in:
parent
59e0b65350
commit
314921c7da
@ -173,7 +173,13 @@ class DirectSession(PandaObject):
|
||||
import TkGlobal
|
||||
self.panel = DirectSessionPanel(parent = tkroot)
|
||||
|
||||
self.clusterMode = base.config.GetString("cluster-mode", '')
|
||||
try:
|
||||
# Has the clusterMode been set externally (i.e. via the
|
||||
# bootstrap application?
|
||||
self.clusterMode = clusterMode
|
||||
except NameError:
|
||||
# Has the clusterMode been set via a config variable?
|
||||
self.clusterMode = base.config.GetString("cluster-mode", '')
|
||||
if self.clusterMode == 'client':
|
||||
self.cluster = createClusterClient()
|
||||
elif self.clusterMode == 'server':
|
||||
|
Loading…
x
Reference in New Issue
Block a user