From df2a0b002555b66367ba4a77fbbf60b30e1014a7 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 24 Nov 2009 01:47:13 +0000 Subject: [PATCH] getModelPath() for server too --- direct/src/distributed/ServerRepository.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/ServerRepository.py b/direct/src/distributed/ServerRepository.py index 27e73d75f3..fa76e47946 100644 --- a/direct/src/distributed/ServerRepository.py +++ b/direct/src/distributed/ServerRepository.py @@ -211,10 +211,13 @@ class ServerRepository: if not readResult: self.notify.error("Could not read dc file.") else: + searchPath = getModelPath().getValue() for dcFileName in dcFileNames: - readResult = dcFile.read(Filename(dcFileName)) + pathname = Filename(dcFileName) + vfs.resolveFilename(pathname, searchPath) + readResult = dcFile.read(pathname) if not readResult: - self.notify.error("Could not read dc file: %s" % (dcFileName)) + self.notify.error("Could not read dc file: %s" % (pathname)) self.hashVal = dcFile.getHash()