model-path interface
This commit is contained in:
parent
669bd797a1
commit
8e73104f28
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue