コード例 #1
0
ファイル: iofuncs.py プロジェクト: DoctorMalboro/prymatex
 def get_3rd_party_funcs(self):
     other_funcs = []
     from spyderlib.otherplugins import get_spyderplugins_mods
     for mod in get_spyderplugins_mods(prefix='io_', extension='.py'):
         try:
             other_funcs.append((mod.FORMAT_EXT, mod.FORMAT_NAME,
                                 mod.FORMAT_LOAD, mod.FORMAT_SAVE))
         except AttributeError, error:
             print >>STDERR, "%s: %s" % (mod, str(error))
コード例 #2
0
    def get_3rd_party_funcs(self):
        other_funcs = []
        from spyderlib.otherplugins import get_spyderplugins_mods

        for mod in get_spyderplugins_mods(prefix="io_", extension=".py"):
            try:
                other_funcs.append((mod.FORMAT_EXT, mod.FORMAT_NAME, mod.FORMAT_LOAD, mod.FORMAT_SAVE))
            except AttributeError as error:
                print("%s: %s" % (mod, str(error)), file=STDERR)
        return other_funcs
コード例 #3
0
 def get_3rd_party_funcs(self):
     other_funcs = []
     from spyderlib.otherplugins import get_spyderplugins_mods
     for mod in get_spyderplugins_mods(prefix='io_', extension='.py'):
         try:
             other_funcs.append((mod.FORMAT_EXT, mod.FORMAT_NAME,
                                 mod.FORMAT_LOAD, mod.FORMAT_SAVE))
         except AttributeError as error:
             print("%s: %s" % (mod, str(error)), file=STDERR)
     return other_funcs