model-path interface

This commit is contained in:
David Rose 2006-02-24 22:04:38 +00:00
parent 669bd797a1
commit 8e73104f28
1 changed files with 1 additions and 1 deletions

View File

@ -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`