local prc file not loaded on Mac OS X
Bug #385953 reported by
case
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
High
|
rdb |
Bug Description
This code works fine on Linux (load a 'config.prc' file located in the $MAIN_DIR of the application), but doesn't work on Mac OS X
from pandac.PandaModules import *
loadPrcFile(
(setting the absolute path works)
description: | updated |
Changed in panda3d: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
here is the workaround i'm using for now:
import sys, os.path abspath( os.path. dirname( sys.argv[ 0])) os.path. join(rootDir, "config.prc"))
rootDir = os.path.
loadPrcFile(
( of course the app has to be called with "./app.py" , not "python ./app.py" )