Browse Source

Modifications to support fourd demo

Mark Mine 23 years ago
parent
commit
f0ed071ee8

+ 4 - 2
direct/src/cluster/ClusterClient.py

@@ -113,8 +113,10 @@ class ClusterClient(DirectObject.DirectObject):
     def loadModel(self, nodePath):
         pass
 
-    def __call__(self, commandString, fLocally = 1):
+    def __call__(self, commandString, fLocally = 1, serverNum = None):
         # Execute remotely
+        if serverNum is not None:
+            self.serverList[serverNum].sendCommandString(commandString)
         for server in self.serverList:
             server.sendCommandString(commandString)
         if fLocally:
@@ -348,7 +350,7 @@ class DummyClusterClient(DirectObject.DirectObject):
     def __init__(self):
         pass
 
-    def __call__(self, commandString, fLocally = 1):
+    def __call__(self, commandString, fLocally = 1, serverNum = None):
         if fLocally:
             # Execute locally
             exec( commandString, __builtins__ )

+ 1 - 0
direct/src/directdevices/DirectJoybox.py

@@ -3,6 +3,7 @@ from PandaObject import *
 from DirectDeviceManager import *
 from DirectUtil import *
 import OnscreenText
+import Task
 
 """
 TODO:

+ 5 - 0
direct/src/directscripts/runPythonEmacs

@@ -60,6 +60,11 @@ if [ "$VRIDE" ]; then
     VRIDE=`cygpath -w $VRIDE`
     export VRIDE
 fi
+if [ "$FOURD" ]; then
+    if [ "$debug" ]; then echo "FOURD   $FOURD"; fi
+    FOURD=`cygpath -w $FOURD`
+    export FOURD
+fi
 if [ "$WINTOOLS" ]; then
     if [ "$debug" ]; then echo "WINTOOLS  $WINTOOLS"; fi
     WINTOOLS=`cygpath -w $WINTOOLS`