Panda3D
Functions | Variables
direct.stdpy.glob Namespace Reference

Functions

def glob (pathname)
 
def glob0 (dirname, basename)
 
def glob1 (dirname, pattern)
 
def has_magic (s)
 
def iglob (pathname)
 

Variables

 magic_check = re.compile('[*?[]')
 

Detailed Description

This module reimplements Python's native glob module using Panda
vfs constructs.  This enables Python to interface more easily with Panda's
virtual file system. 

Function Documentation

◆ glob()

def direct.stdpy.glob.glob (   pathname)
Return a list of paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la fnmatch.

◆ glob0()

def direct.stdpy.glob.glob0 (   dirname,
  basename 
)

◆ glob1()

def direct.stdpy.glob.glob1 (   dirname,
  pattern 
)

◆ has_magic()

def direct.stdpy.glob.has_magic (   s)

◆ iglob()

def direct.stdpy.glob.iglob (   pathname)
Return an iterator which yields the paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la fnmatch.

Variable Documentation

◆ magic_check

magic_check = re.compile('[*?[]')