mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Remove annoying ":Packager(warning): No such file" warning
This commit is contained in:
parent
5580f1919e
commit
e6b245c56d
@ -3764,8 +3764,7 @@ class Packager:
|
||||
self.__recurseDir(dirname, newDir, unprocessed = unprocessed)
|
||||
|
||||
def __recurseDir(self, filename, newName, unprocessed = None, packageTree = None):
|
||||
dirList = vfs.scanDirectory(filename)
|
||||
if dirList:
|
||||
if filename.isDirectory():
|
||||
# It's a directory name. Recurse.
|
||||
prefix = newName
|
||||
if prefix and prefix[-1] != '/':
|
||||
@ -3773,6 +3772,7 @@ class Packager:
|
||||
|
||||
# First check if this is a Python package tree. If so, add it
|
||||
# implicitly as a module.
|
||||
dirList = vfs.scanDirectory(filename)
|
||||
for subfile in dirList:
|
||||
filename = subfile.getFilename()
|
||||
if filename.getBasename() == '__init__.py':
|
||||
@ -3784,6 +3784,9 @@ class Packager:
|
||||
self.__recurseDir(filename, prefix + filename.getBasename(),
|
||||
unprocessed = unprocessed)
|
||||
return
|
||||
elif not filename.exists():
|
||||
# It doesn't exist. Perhaps it's a virtual file. Ignore it.
|
||||
return
|
||||
|
||||
# It's a file name. Add it.
|
||||
ext = filename.getExtension()
|
||||
|
@ -49,6 +49,7 @@ Fixes and improvements for the runtime:
|
||||
* Fix missing xml and ast modules from morepy package
|
||||
* Certificate dialog is now localized to various languages
|
||||
* Pass on failing exit status from packaged application
|
||||
* Remove annoying ":Packager(warning): No such file" warning
|
||||
* Fix issue installing pdeploy-generated .pkg on OS X 10.11
|
||||
|
||||
Fixes for the Python API:
|
||||
|
Loading…
x
Reference in New Issue
Block a user