local prc file not loaded on Mac OS X

Bug #385953 reported by case
6
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("config.prc")

(setting the absolute path works)

case (case-construct)
description: updated
Revision history for this message
case (case-construct) wrote :

here is the workaround i'm using for now:

import sys, os.path
rootDir = os.path.abspath(os.path.dirname(sys.argv[0]))
loadPrcFile(os.path.join(rootDir, "config.prc"))

( of course the app has to be called with "./app.py" , not "python ./app.py" )

Revision history for this message
rdb (rdb) wrote :

Fix committed to Panda3D CVS, main branch.

Changed in panda3d:
assignee: nobody → pro-rsoft (niertie1)
importance: Undecided → High
milestone: none → 1.7.0
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.