From 497d3b2610eca0819ee1d863cc3a558c777318da Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 9 Mar 2005 20:33:13 +0000 Subject: [PATCH] accept HumanDNA instead of HumanDNAAI --- direct/src/distributed/ServerRepository.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/distributed/ServerRepository.py b/direct/src/distributed/ServerRepository.py index 2cb0466f82..66db6eb6e3 100644 --- a/direct/src/distributed/ServerRepository.py +++ b/direct/src/distributed/ServerRepository.py @@ -141,6 +141,11 @@ class ServerRepository: # Does the class have a definition defined in the newly # imported namespace? classDef = dcImports.get(className) + + # Also try it without the dcSuffix. + if classDef == None: + classDef = dcImports.get(dcClass.getName()) + if classDef == None: self.notify.info("No class definition for %s." % (className)) else: