summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-11 19:47:51 +0000
committerErik Troan <ewt@redhat.com>2000-05-11 19:47:51 +0000
commitb7bbbd4c62a0e74f923aafa0809c9ca5ea5fdb23 (patch)
tree1ebbb875064ad2ed6967c10fb8f86597e305bdbb /installclass.py
parent3bd56a04001d9d49f459eb4b72ac6d0c37066dab (diff)
downloadanaconda-b7bbbd4c62a0e74f923aafa0809c9ca5ea5fdb23.tar.gz
anaconda-b7bbbd4c62a0e74f923aafa0809c9ca5ea5fdb23.tar.xz
anaconda-b7bbbd4c62a0e74f923aafa0809c9ca5ea5fdb23.zip
.pyc and .pyo files are good
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py7
1 files changed, 4 insertions, 3 deletions
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