zuck
March 19, 2009, 10:02pm
1
Hi, i can’t understand how config file system should work in Panda with a base project folder tree like this:
project_root/
|_ etc/
|_ launch_script.py
If i call “cpMgr.getSearchPath()” method, the only result is:
[panda_154_lib_path]/etc
Where can I put all my project-specific config files?
rdb
March 19, 2009, 10:07pm
2
I believe the search path is set to etc by default, which means it will automatically search for available dirs. In your case, it only found the etc dir in the panda3d installation.
zuck
March 19, 2009, 10:11pm
3
So if I put a config file in the project root (or in the “etc” folder of the project root) Panda should find and read it?
rdb
March 19, 2009, 10:16pm
4
It should, I think. Why don’t you try it and see?
zuck
March 22, 2009, 6:09pm
5
Because I’ve already tried it…
If i put a “test.prc” file in my project root or in a “etc” folder inside my project root, the file is not loaded.