getModelPath() for server too

This commit is contained in:
David Rose 2009-11-24 01:47:13 +00:00
parent fe94fedc10
commit df2a0b0025

View File

@ -211,10 +211,13 @@ class ServerRepository:
if not readResult: if not readResult:
self.notify.error("Could not read dc file.") self.notify.error("Could not read dc file.")
else: else:
searchPath = getModelPath().getValue()
for dcFileName in dcFileNames: for dcFileName in dcFileNames:
readResult = dcFile.read(Filename(dcFileName)) pathname = Filename(dcFileName)
vfs.resolveFilename(pathname, searchPath)
readResult = dcFile.read(pathname)
if not readResult: 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() self.hashVal = dcFile.getHash()