mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
minor imports problem
This commit is contained in:
parent
eaa2163cb0
commit
e691d3c80f
@ -30,10 +30,6 @@ class HostInfo:
|
|||||||
self.hostDir = hostDir
|
self.hostDir = hostDir
|
||||||
self.asMirror = asMirror
|
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
|
# hostUrlPrefix is the host URL, but it is guaranteed to end
|
||||||
# with a slash.
|
# with a slash.
|
||||||
self.hostUrlPrefix = hostUrl
|
self.hostUrlPrefix = hostUrl
|
||||||
|
@ -2261,7 +2261,7 @@ class Packager:
|
|||||||
|
|
||||||
# Now we've retrieved a PackageInfo. Get the import desc file
|
# Now we've retrieved a PackageInfo. Get the import desc file
|
||||||
# from it.
|
# 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):
|
if not appRunner.freshenFile(host, package.importDescFile, filename):
|
||||||
self.notify.error("Couldn't download import file.")
|
self.notify.error("Couldn't download import file.")
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user