ConfigVariableSearchPath
from panda3d.core import ConfigVariableSearchPath
- class ConfigVariableSearchPath
Bases:
ConfigVariableBase
This is similar to a ConfigVariableList, but it returns its list as a DSearchPath, as a list of directories.
You may locally append directories to the end of the search path with the methods here, or prepend them to the beginning. Use these methods to make adjustments to the path; do not attempt to directly modify the const DSearchPath object returned by get_value().
Unlike other ConfigVariable types, local changes (made by calling append_directory() and prepend_directory()) are specific to this particular instance of the ConfigVariableSearchPath. A separate instance of the same variable, created by using the same name to the constructor, will not reflect the local changes.
Inheritance diagram
- __init__(*args, **kwargs)
- appendDirectory()
C++ Interface: append_directory(const ConfigVariableSearchPath self, const Filename directory)
- /**
Adds a new directory to the end of the search list.
*/
- appendPath()
C++ Interface: append_path(const ConfigVariableSearchPath self, str path, str separator) append_path(const ConfigVariableSearchPath self, const DSearchPath path)
- append_directory()
C++ Interface: append_directory(const ConfigVariableSearchPath self, const Filename directory)
- /**
Adds a new directory to the end of the search list.
*/
- append_path()
C++ Interface: append_path(const ConfigVariableSearchPath self, str path, str separator) append_path(const ConfigVariableSearchPath self, const DSearchPath path)
- clear()
C++ Interface: clear(const ConfigVariableSearchPath self)
- /**
Removes all the directories locally added to the search list, and restores
it to its original form.
*/
- clearLocalValue()
C++ Interface: clear_local_value(const ConfigVariableSearchPath self)
- /**
Removes all the directories locally added to the search list, and restores
it to its original form.
*/
- clear_local_value()
C++ Interface: clear_local_value(const ConfigVariableSearchPath self)
- /**
Removes all the directories locally added to the search list, and restores
it to its original form.
*/
- default_value
- directories
- findAllFiles()
C++ Interface: find_all_files(ConfigVariableSearchPath self, const Filename filename) find_all_files(ConfigVariableSearchPath self, const Filename filename, Results results)
- /**
Searches all the directories in the search list for the indicated file, in
order. Fills up the results list with all of the matching filenames
found, if any. Returns the number of matches found.
It is the responsibility of the the caller to clear the results list first;
otherwise, the newly-found files will be appended to the list.
*/
- /**
This variant of find_all_files() returns the new Results object, instead of
filling on in on the parameter list. This is a little more convenient to
call from Python.
*/
- findFile()
C++ Interface: find_file(ConfigVariableSearchPath self, const Filename filename)
- /**
Searches all the directories in the search list for the indicated file, in
order. Returns the full matching pathname of the first match if found, or
the empty string if not found.
*/
- find_all_files()
C++ Interface: find_all_files(ConfigVariableSearchPath self, const Filename filename) find_all_files(ConfigVariableSearchPath self, const Filename filename, Results results)
- /**
Searches all the directories in the search list for the indicated file, in
order. Fills up the results list with all of the matching filenames
found, if any. Returns the number of matches found.
It is the responsibility of the the caller to clear the results list first;
otherwise, the newly-found files will be appended to the list.
*/
- /**
This variant of find_all_files() returns the new Results object, instead of
filling on in on the parameter list. This is a little more convenient to
call from Python.
*/
- find_file()
C++ Interface: find_file(ConfigVariableSearchPath self, const Filename filename)
- /**
Searches all the directories in the search list for the indicated file, in
order. Returns the full matching pathname of the first match if found, or
the empty string if not found.
*/
- getDirectories()
- getDirectory()
C++ Interface: get_directory(ConfigVariableSearchPath self, int n)
- /**
Returns the nth directory on the search list.
*/
- getNumDirectories()
C++ Interface: get_num_directories(ConfigVariableSearchPath self)
- /**
Returns the number of directories on the search list.
*/
- get_directories()
- get_directory()
C++ Interface: get_directory(ConfigVariableSearchPath self, int n)
- /**
Returns the nth directory on the search list.
*/
- get_num_directories()
C++ Interface: get_num_directories(ConfigVariableSearchPath self)
- /**
Returns the number of directories on the search list.
*/
- isEmpty()
C++ Interface: is_empty(ConfigVariableSearchPath self)
- /**
Returns true if the search list is empty, false otherwise.
*/
- is_empty()
C++ Interface: is_empty(ConfigVariableSearchPath self)
- /**
Returns true if the search list is empty, false otherwise.
*/
- operatorTypecastDSearchPath()
C++ Interface: operator_typecast_DSearchPath(ConfigVariableSearchPath self)
- operator_typecast_DSearchPath()
C++ Interface: operator_typecast_DSearchPath(ConfigVariableSearchPath self)
- prependDirectory()
C++ Interface: prepend_directory(const ConfigVariableSearchPath self, const Filename directory)
- /**
Adds a new directory to the front of the search list.
*/
- prependPath()
C++ Interface: prepend_path(const ConfigVariableSearchPath self, const DSearchPath path)
- /**
Adds all of the directories listed in the search path to the beginning of
the search list.
*/
- prepend_directory()
C++ Interface: prepend_directory(const ConfigVariableSearchPath self, const Filename directory)
- /**
Adds a new directory to the front of the search list.
*/
- prepend_path()
C++ Interface: prepend_path(const ConfigVariableSearchPath self, const DSearchPath path)
- /**
Adds all of the directories listed in the search path to the beginning of
the search list.
*/
- value