def __splitGlobalFiles__(self): from SplitZWR import splitZWR zwrFiles = glob.glob(os.path.join(self._packagesDir, "*.zwr")) maxSize = 64 << 20 for f in zwrFiles: if os.stat(f).st_size > maxSize: splitZWR(f, maxSize)