コード例 #1
0
 def bundle(self,
            path: pathlib.Path,
            *,
            basedir: pathlib.Path = pathlib.Path.cwd(),
            options: Dict[str, Any]) -> bytes:
     include_paths: List[pathlib.Path] = options['include_paths']
     assert isinstance(include_paths, list)
     bundler = Bundler(iquotes=include_paths)
     bundler.update(path)
     return bundler.get()
コード例 #2
0
 def bundle(self, path: pathlib.Path, *, basedir: pathlib.Path) -> bytes:
     bundler = Bundler(iquotes=[basedir])
     bundler.update(path)
     return bundler.get()