Browse Source

minor imports problem

David Rose 16 years ago
parent
commit
e691d3c80f
2 changed files with 1 additions and 5 deletions
  1. 0 4
      direct/src/p3d/HostInfo.py
  2. 1 1
      direct/src/p3d/Packager.py

+ 0 - 4
direct/src/p3d/HostInfo.py

@@ -30,10 +30,6 @@ class HostInfo:
         self.hostDir = hostDir
         self.asMirror = asMirror
 
-        self.importsDir = None
-        if self.hostDir:
-            self.importsDir = Filename(self.hostDir, 'imports')
-
         # hostUrlPrefix is the host URL, but it is guaranteed to end
         # with a slash.
         self.hostUrlPrefix = hostUrl

+ 1 - 1
direct/src/p3d/Packager.py

@@ -2261,7 +2261,7 @@ class Packager:
 
         # Now we've retrieved a PackageInfo.  Get the import desc file
         # from it.
-        filename = Filename(host.importsDir, package.importDescFile.basename)
+        filename = Filename(host.hostDir, 'imports/' + package.importDescFile.basename)
         if not appRunner.freshenFile(host, package.importDescFile, filename):
             self.notify.error("Couldn't download import file.")
             return None