Remove annoying ":Packager(warning): No such file" warning

This commit is contained in:
rdb 2015-11-23 20:20:48 +01:00
parent 5580f1919e
commit e6b245c56d
2 changed files with 6 additions and 2 deletions

View File

@ -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()

View File

@ -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: