From d604adf31d89b0b996f7ac1aa70b843856039ddb Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Wed, 18 May 2005 00:11:47 +0000 Subject: [PATCH] changed dcSuffix check --- direct/src/distributed/ConnectionRepository.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/direct/src/distributed/ConnectionRepository.py b/direct/src/distributed/ConnectionRepository.py index f6dffdc12f..5ec805f55d 100644 --- a/direct/src/distributed/ConnectionRepository.py +++ b/direct/src/distributed/ConnectionRepository.py @@ -111,9 +111,10 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository): # Maybe the module name is represented as "moduleName/AI". suffix = moduleName.split('/') moduleName = suffix[0] - if self.dcSuffix and self.dcSuffix in suffix[1:]: + suffix=suffix[1:] + if self.dcSuffix in suffix: moduleName += self.dcSuffix - elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK: + elif self.dcSuffix == 'UD' and 'AI' in suffix: #HACK: moduleName += 'AI' importSymbols = [] @@ -123,9 +124,10 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository): # Maybe the symbol name is represented as "symbolName/AI". suffix = symbolName.split('/') symbolName = suffix[0] - if self.dcSuffix and self.dcSuffix in suffix[1:]: + suffix=suffix[1:] + if self.dcSuffix in suffix: symbolName += self.dcSuffix - elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK: + elif self.dcSuffix == 'UD' and 'AI' in suffix: #HACK: symbolName += 'AI' importSymbols.append(symbolName)