# VFSLoader

from direct.showbase.VFSImporter import VFSLoader

The second part of VFSImporter, this is created for a particular .py file or directory.

## Inheritance:

VFSLoader:

## Methods of VFSLoader:

__init__
_compile
_import_compiled_module
_loadPyc
_read_code
_read_source
get_code
get_source
getdata
is_package
load_module

__init__ def __init__(self, importer, vfile, filename, fileType, desc=None, packagePath=None) Undocumented function.

_compile def _compile(self, filename, source) Compiles the Python source code to a code object and attempts to write it to an appropriate .pyc file.

_import_compiled_module def _import_compiled_module(self, fullname) Loads the compiled C/C++ shared object as a Python module, and returns it.

_loadPyc def _loadPyc(self, vfile, timestamp) Reads and returns the marshal data from a .pyc file.

_read_code def _read_code(self) Returns the Python compiled code object for this file, if it is available, or None if it is not.

_read_source def _read_source(self) Returns the Python source for this file, if it is available, or None if it is not.

get_code def get_code(self, fullname) Undocumented function.

get_source def get_source(self, fullname) Undocumented function.

getdata def getdata(self, path) Undocumented function.

is_package def is_package(self, fullname) Undocumented function.

load_module def load_module(self, fullname) Undocumented function.