Browse Source

added isLive()

Darren Ranalli 19 years ago
parent
commit
6744102679
1 changed files with 5 additions and 0 deletions
  1. 5 0
      direct/src/distributed/ClientRepositoryBase.py

+ 5 - 0
direct/src/distributed/ClientRepositoryBase.py

@@ -510,6 +510,11 @@ class ClientRepositoryBase(ConnectionRepository):
                 return None
         return worldNP
 
+    def isLive(self):
+        if base.config.GetBool('force-live', 0):
+            return True
+        return not (__dev__ or launcher.isTestServer())
+
     def isLocalId(self, id):
         # By default, no ID's are local.  See also
         # ClientRepository.isLocalId().