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()