|
Panda3D
|
Public Member Functions | |
| __init__ (self, dir_path, vfile, filename, desc, packagePath=None) | |
| get_code (self, fullname) | |
| get_filename (self, fullname) | |
| get_source (self, fullname) | |
| getdata (self, path) | |
| is_package (self, fullname) | |
| load_module (self, fullname, loadingShared=False) | |
Public Attributes | |
| desc = desc | |
| dir_path = dir_path | |
| filename = filename | |
| packagePath = packagePath | |
| timestamp = None | |
Protected Member Functions | |
| _compile (self, filename, source) | |
| _import_extension_module (self, fullname) | |
| _import_frozen_module (self, fullname) | |
| _loadPyc (self, vfile, timestamp) | |
| _read_code (self) | |
| _read_source (self) | |
The second part of VFSImporter, this is created for a particular .py file or directory.
| __init__ | ( | self, | |
| dir_path, | |||
| vfile, | |||
| filename, | |||
| desc, | |||
| packagePath = None ) |
|
protected |
Compiles the Python source code to a code object and attempts to write it to an appropriate .pyc file. May raise SyntaxError or other errors generated by the compiler.
|
protected |
Loads the binary shared object as a Python module, and returns it.
|
protected |
Imports the frozen module without messing around with searching any more.
|
protected |
Reads and returns the marshal data from a .pyc file. Raises ValueError if there is a problem.
|
protected |
Returns the Python compiled code object for this file, if it is available, or None if it is not. May raise IOError, ValueError, SyntaxError, or a number of other errors generated by the low-level system.
|
protected |
Returns the Python source for this file, if it is available, or None if it is not. May raise IOError.
| get_code | ( | self, | |
| fullname ) |
| get_filename | ( | self, | |
| fullname ) |
| get_source | ( | self, | |
| fullname ) |
| getdata | ( | self, | |
| path ) |
| is_package | ( | self, | |
| fullname ) |
| load_module | ( | self, | |
| fullname, | |||
| loadingShared = False ) |
| desc = desc |
| dir_path = dir_path |
| filename = filename |
| packagePath = packagePath |
| timestamp = None |