diff -Naur smart-0.51/smart/__init__.py smart-0.51.tpg/smart/__init__.py --- smart-0.51/smart/__init__.py 2007-01-15 19:27:34.000000000 +0000 +++ smart-0.51.tpg/smart/__init__.py 2007-08-29 09:55:19.000000000 +0000 @@ -166,19 +166,19 @@ if os.path.isdir(PLUGINSDIR): entries.extend(os.listdir(PLUGINSDIR)) for entry in os.listdir(pluginsdir): - if entry != "__init__.py" and entry.endswith(".py"): - __import__("smart.plugins."+entry[:-3]) + if entry != "__init__.pyc" and entry.endswith(".pyc"): + __import__("smart.plugins."+entry[:-4]) else: entrypath = os.path.join(pluginsdir, entry) if os.path.isdir(entrypath): - initpath = os.path.join(entrypath, "__init__.py") + initpath = os.path.join(entrypath, "__init__.pyc") if os.path.isfile(initpath): __import__("smart.plugins."+entry) backendsdir = os.path.dirname(backends.__file__) for entry in os.listdir(backendsdir): entrypath = os.path.join(backendsdir, entry) if os.path.isdir(entrypath): - initpath = os.path.join(entrypath, "__init__.py") + initpath = os.path.join(entrypath, "__init__.pyc") if os.path.isfile(initpath): __import__("smart.backends."+entry) diff -Naur smart-0.51/smart/channel.py smart-0.51.tpg/smart/channel.py --- smart-0.51/smart/channel.py 2005-12-14 19:27:17.000000000 +0000 +++ smart-0.51.tpg/smart/channel.py 2007-08-29 09:55:19.000000000 +0000 @@ -296,8 +296,8 @@ filenames = os.listdir(os.path.dirname(channels.__file__)) infos = {} for filename in filenames: - if filename.endswith("_info.py"): - type = filename[:-8].replace("_", "-") + if filename.endswith("_info.pyc"): + type = filename[:-9].replace("_", "-") infos[type] = getChannelInfo(type) return infos