Browse Source

getModelPath() for server too

David Rose 16 years ago
parent
commit
df2a0b0025
1 changed files with 5 additions and 2 deletions
  1. 5 2
      direct/src/distributed/ServerRepository.py

+ 5 - 2
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()