mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -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 *
|
from direct.showbase.PandaObject import *
|
||||||
|
|
||||||
# Initialize icon directory
|
# Initialize icon directory
|
||||||
f = Filename('icons')
|
ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()
|
||||||
f.resolveFilename(getModelPath())
|
|
||||||
ICONDIR = f.toOsSpecific()
|
|
||||||
if not os.path.isdir(ICONDIR):
|
if not os.path.isdir(ICONDIR):
|
||||||
raise RuntimeError, "can't find DIRECT icon directory (%s)" % `ICONDIR`
|
raise RuntimeError, "can't find DIRECT icon directory (%s)" % `ICONDIR`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user