diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-08-29 20:37:44 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-08-29 20:37:44 +0000 |
commit | 445bf42e67711ca82c94474fa4e0559e750028b0 (patch) | |
tree | 30277eff8d6e1434b670c40062dabd0458e467d8 /iw/progress_gui.py | |
parent | 08e0331beb4ba585a5cf2a42789d7d97a306f17d (diff) | |
download | anaconda-445bf42e67711ca82c94474fa4e0559e750028b0.tar.gz anaconda-445bf42e67711ca82c94474fa4e0559e750028b0.tar.xz anaconda-445bf42e67711ca82c94474fa4e0559e750028b0.zip |
if lang isn't set, just use the default
Diffstat (limited to 'iw/progress_gui.py')
-rw-r--r-- | iw/progress_gui.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py index ef98c19de..7a466025b 100644 --- a/iw/progress_gui.py +++ b/iw/progress_gui.py @@ -161,18 +161,19 @@ class InstallProgressWindow (InstallWindow): shortlang = string.split(os.environ['LANG'], '_')[0] except: shortlang = '' + else: + shortlang = '' + pixmaps1 = glob.glob("/usr/share/anaconda/pixmaps/rnotes/%s/*.png" % shortlang) + pixmaps2 = glob.glob("pixmaps/rnotes/%s/*.png" % shortlang) - pixmaps1 = glob.glob("/usr/share/anaconda/pixmaps/rnotes/%s/*.png" % shortlang) - pixmaps2 = glob.glob("pixmaps/rnotes/%s/*.png" % shortlang) - - if len(pixmaps1) > 0 or len(pixmaps2) > 0: - if len(pixmaps1) < len(pixmaps2): - files = pixmaps2 - else: - files = pixmaps1 + if len(pixmaps1) > 0 or len(pixmaps2) > 0: + if len(pixmaps1) < len(pixmaps2): + files = pixmaps2 else: - files = ["progress_first.png"] + files = pixmaps1 + else: + files = ["progress_first.png"] #--Need to merge with if statement above...don't show ads in lowres if intf.runres != '800x600': |