ConfigVariableFilename

from panda3d.core import ConfigVariableFilename
class ConfigVariableFilename

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as a Filename type. It is almost the same thing as ConfigVariableString, except it handles an implicit Filename::expand_from() operation so that the user may put OS-specific filenames, or filenames based on environment variables, in the prc file.

Inheritance diagram

Inheritance diagram of ConfigVariableFilename

Fspath()

C++ Interface: __fspath__(ConfigVariableFilename self)

/**
  • Allows a ConfigVariableFilename object to be passed to any Python function

  • that accepts an os.PathLike object.

  • @since 1.10.13

*/

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const ConfigVariableFilename self, const Filename value)

cStr()

C++ Interface: c_str(ConfigVariableFilename self)

// These methods help the ConfigVariableFilename act like a Filename object.

/**

*/

c_str()

C++ Interface: c_str(ConfigVariableFilename self)

// These methods help the ConfigVariableFilename act like a Filename object.

/**

*/

default_value
empty()

C++ Interface: empty(ConfigVariableFilename self)

/**

*/

getBasename()

C++ Interface: get_basename(ConfigVariableFilename self)

/**
  • Returns the basename part of the filename. This is everything in the

  • filename after the rightmost slash, including any extensions.

*/

getBasenameWoExtension()

C++ Interface: get_basename_wo_extension(ConfigVariableFilename self)

/**
  • Returns the basename part of the filename, without the file extension.

*/

getDefaultValue()

C++ Interface: get_default_value(ConfigVariableFilename self)

/**
  • Returns the variable’s default value.

*/

getDirname()

C++ Interface: get_dirname(ConfigVariableFilename self)

/**
  • Returns the directory part of the filename. This is everything in the

  • filename up to, but not including the rightmost slash.

*/

getExtension()

C++ Interface: get_extension(ConfigVariableFilename self)

/**
  • Returns the file extension. This is everything after the rightmost dot, if

  • there is one, or the empty string if there is not.

*/

getFullpath()

C++ Interface: get_fullpath(ConfigVariableFilename self)

/**
  • Returns the entire filename: directory, basename, extension. This is the

  • same thing returned by the string typecast operator, so this function is a

  • little redundant.

*/

getFullpathWoExtension()

C++ Interface: get_fullpath_wo_extension(ConfigVariableFilename self)

/**
  • Returns the full filename–directory and basename parts–except for the

  • extension.

*/

getValue()

C++ Interface: get_value(ConfigVariableFilename self)

/**
  • Returns the variable’s value.

*/

getWord()

C++ Interface: get_word(ConfigVariableFilename self, int n)

/**
  • Returns the variable’s nth value.

*/

get_basename()

C++ Interface: get_basename(ConfigVariableFilename self)

/**
  • Returns the basename part of the filename. This is everything in the

  • filename after the rightmost slash, including any extensions.

*/

get_basename_wo_extension()

C++ Interface: get_basename_wo_extension(ConfigVariableFilename self)

/**
  • Returns the basename part of the filename, without the file extension.

*/

get_default_value()

C++ Interface: get_default_value(ConfigVariableFilename self)

/**
  • Returns the variable’s default value.

*/

get_dirname()

C++ Interface: get_dirname(ConfigVariableFilename self)

/**
  • Returns the directory part of the filename. This is everything in the

  • filename up to, but not including the rightmost slash.

*/

get_extension()

C++ Interface: get_extension(ConfigVariableFilename self)

/**
  • Returns the file extension. This is everything after the rightmost dot, if

  • there is one, or the empty string if there is not.

*/

get_fullpath()

C++ Interface: get_fullpath(ConfigVariableFilename self)

/**
  • Returns the entire filename: directory, basename, extension. This is the

  • same thing returned by the string typecast operator, so this function is a

  • little redundant.

*/

get_fullpath_wo_extension()

C++ Interface: get_fullpath_wo_extension(ConfigVariableFilename self)

/**
  • Returns the full filename–directory and basename parts–except for the

  • extension.

*/

get_value()

C++ Interface: get_value(ConfigVariableFilename self)

/**
  • Returns the variable’s value.

*/

get_word()

C++ Interface: get_word(ConfigVariableFilename self, int n)

/**
  • Returns the variable’s nth value.

*/

length()

C++ Interface: length(ConfigVariableFilename self)

/**

*/

operatorTypecast()

C++ Interface: operator_typecast(ConfigVariableFilename self)

operator_typecast()

C++ Interface: operator_typecast(ConfigVariableFilename self)

setValue()

C++ Interface: set_value(const ConfigVariableFilename self, const Filename value)

/**
  • Reassigns the variable’s local value.

*/

setWord()

C++ Interface: set_word(const ConfigVariableFilename self, int n, const Filename value)

/**
  • Reassigns the variable’s nth value. This makes a local copy of the

  • variable’s overall value.

*/

set_value()

C++ Interface: set_value(const ConfigVariableFilename self, const Filename value)

/**
  • Reassigns the variable’s local value.

*/

set_word()

C++ Interface: set_word(const ConfigVariableFilename self, int n, const Filename value)

/**
  • Reassigns the variable’s nth value. This makes a local copy of the

  • variable’s overall value.

*/

value