diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-11 19:47:51 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-11 19:47:51 +0000 |
commit | b7bbbd4c62a0e74f923aafa0809c9ca5ea5fdb23 (patch) | |
tree | 1ebbb875064ad2ed6967c10fb8f86597e305bdbb /installclass.py | |
parent | 3bd56a04001d9d49f459eb4b72ac6d0c37066dab (diff) | |
download | anaconda-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.py | 7 |
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 |