|
|
@@ -22,7 +22,7 @@ from direct.showbase.TkGlobal import *
|
|
|
from pandac.PandaModules import *
|
|
|
|
|
|
# Initialize icon directory
|
|
|
-ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()
|
|
|
+ICONDIR = ConfigVariableSearchPath('model-path').findFile(Filename('icons')).toOsSpecific()
|
|
|
if not os.path.isdir(ICONDIR):
|
|
|
raise RuntimeError, "can't find DIRECT icon directory (%s)" % `ICONDIR`
|
|
|
|