diff --git a/direct/src/p3d/Packager.py b/direct/src/p3d/Packager.py index ea58cac19e..62b5aa5851 100644 --- a/direct/src/p3d/Packager.py +++ b/direct/src/p3d/Packager.py @@ -1729,7 +1729,7 @@ class Packager: # Text files that are copied (and compressed) to the package # without processing. - self.textExtensions = [ 'prc', 'ptf', 'txt', 'cg', 'sha' ] + self.textExtensions = [ 'prc', 'ptf', 'txt', 'cg', 'sha', 'dc' ] # Binary files that are copied (and compressed) without # processing. @@ -2800,6 +2800,9 @@ class Packager: if not newDir: newDir = '' + # Adding the directory to sys.path is a cheesy way to help the + # modulefinder find it. + sys.path.append(dirname.toOsSpecific()) self.__recurseDir(dirname, newDir, unprocessed = unprocessed) def __recurseDir(self, filename, newName, unprocessed = None):