ConfigVariableFilename
from panda3d.core import ConfigVariableFilename
- class ConfigVariableFilename
 Bases:
Bases:
ConfigVariableThis is a convenience class to specialize
ConfigVariableas a Filename type. It is almost the same thing asConfigVariableString, except it handles an implicitFilename.expandFrom()operation so that the user may put OS-specific filenames, or filenames based on environment variables, in the prc file.Inheritance diagram
- __fspath__() str
 Allows a
ConfigVariableFilenameobject to be passed to any Python function that accepts an os.PathLike object.New in version 1.10.13.
- __init__(param0: ConfigVariableFilename)
 
- __init__(name: str)
 
- assign(value: Filename) ConfigVariableFilename
 
- cStr() str
 These methods help the
ConfigVariableFilenameact like a Filename object.
- getBasename() str
 Returns the basename part of the filename. This is everything in the filename after the rightmost slash, including any extensions.
- getBasenameWoExtension() str
 Returns the basename part of the filename, without the file extension.
- getDirname() str
 Returns the directory part of the filename. This is everything in the filename up to, but not including the rightmost slash.
- getExtension() str
 Returns the file extension. This is everything after the rightmost dot, if there is one, or the empty string if there is not.
- getFullpath() str
 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() str
 Returns the full filename–directory and basename parts–except for the extension.
