sort glob output before using it

This commit is contained in:
Brian C. Lane 2013-12-13 09:33:02 -08:00
parent 0b825ab3ab
commit e0ff5eb254

View File

@ -3,7 +3,7 @@
<%page args="root, basearch, libdir, configdir"/>
<%
PYTHONDIR = glob("usr/"+libdir+"/python?.?")[0]
PYTHONDIR = sorted(glob("usr/"+libdir+"/python?.?"))[0]
stubs = ("list-harddrives", "raidstart", "raidstop")
configdir = configdir + "/common"
%>