From b7bbbd4c62a0e74f923aafa0809c9ca5ea5fdb23 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Thu, 11 May 2000 19:47:51 +0000 Subject: .pyc and .pyo files are good --- installclass.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'installclass.py') diff --git a/installclass.py b/installclass.py index e1256dc62..63107c22f 100644 --- a/installclass.py +++ b/installclass.py @@ -270,9 +270,10 @@ def availableClasses(): list = [] for file in files: if file[0] == '.': continue - if len (file) >= 3: - if file[-3:] != ".py": - continue + if len (file) < 4: + continue + if file[-3:] != ".py" and file[-4:-1] != ".py": + continue mainName = string.split(file, ".")[0] if done.has_key(mainName): continue done[mainName] = 1 -- cgit