Exemplo n.º 1
0
    def pprint_objects(self, slangs=['c', 'chapel', 'tp']):
        """Pretty-print objects storage."""

        for slang in slangs:
            paths = self._config["object_store"]["search_paths"][slang]
            for path in paths:
                info("* %s objects in '%s':" % (slang.title(), path))
                for object_path in glob.glob("%s%s*" % (path, os.sep)):
                    if os.path.basename(object_path) in self.PPRINT_IGNORE:
                        continue
                    info(os.path.basename(object_path))
Exemplo n.º 2
0
    def pprint_objects(self, slangs=['c', 'chapel', 'tp']):
        """Pretty-print objects storage."""

        for slang in slangs:
            paths = self._config["object_store"]["search_paths"][slang]
            for path in paths:
                info("* %s objects in '%s':" % (slang.title(), path))
                for object_path in glob.glob("%s%s*" % (path, os.sep)):
                    if os.path.basename(object_path) in self.PPRINT_IGNORE:
                        continue
                    info(os.path.basename(object_path))
Exemplo n.º 3
0
    def pprint_specializers(self, stypes=['bfiles', 'sfiles', 'templates']):
        """Pretty-print specializer-configuration as described in pych.json."""

        for stype in stypes:
            info("** Listing %s" % stype)
            bdirs = self._config["specializers"][stype]
            for slang in bdirs:
                for bdir in bdirs[slang]:
                    info("* %s %s(s) in '%s':" % (slang.title(), stype, bdir))
                    for fname in glob.glob("%s%s*" % (bdir, os.sep)):
                        if os.path.basename(fname) in self.PPRINT_IGNORE:
                            continue
                        info(os.path.basename(fname))
            info("** End of %s listing." % stype)
Exemplo n.º 4
0
 def pprint_specializers(self, stypes=['bfiles', 'sfiles', 'templates']):
     """Pretty-print specializer-configuration as described in pych.json."""
     
     for stype in stypes:    
         info("** Listing %s" % stype) 
         bdirs = self._config["specializers"][stype]
         for slang in bdirs:
             for bdir in bdirs[slang]:
                 info("* %s %s(s) in '%s':" % (slang.title(), stype, bdir))
                 for fname in glob.glob("%s%s*" % (bdir, os.sep)):
                     if os.path.basename(fname) in self.PPRINT_IGNORE:
                         continue
                     info(os.path.basename(fname))
         info("** End of %s listing." % stype)