mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
better search for ICONDIR
This commit is contained in:
parent
668bcb40ad
commit
051183eda9
@ -22,9 +22,7 @@ from direct.showbase.TkGlobal import *
|
||||
from direct.showbase.PandaObject import *
|
||||
|
||||
# Initialize icon directory
|
||||
f = Filename('icons')
|
||||
f.resolveFilename(getModelPath())
|
||||
ICONDIR = f.toOsSpecific()
|
||||
ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()
|
||||
if not os.path.isdir(ICONDIR):
|
||||
raise RuntimeError, "can't find DIRECT icon directory (%s)" % `ICONDIR`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user