Public Member Functions | Private Member Functions | Private Attributes | List of all members
qt_gui.reload_importer.ReloadImporter Class Reference

Public Member Functions

def __init__ (self)
 
def add_reload_path (self, path)
 
def disable (self)
 
def enable (self)
 

Private Member Functions

def _reimport (self, name, globals_=None, locals_=None, fromlist=None, level=-1)
 
def _reload (self, module)
 

Private Attributes

 _excluded_modules
 
 _import
 
 _import_stack
 
 _reload_paths
 
 _reloaded_modules
 

Detailed Description

Overrides the builtin import and automatically reloads all modules.

Modules are imported from one of the reload paths after calling enable.

Definition at line 39 of file reload_importer.py.

Constructor & Destructor Documentation

◆ __init__()

def qt_gui.reload_importer.ReloadImporter.__init__ (   self)

Definition at line 46 of file reload_importer.py.

Member Function Documentation

◆ _reimport()

def qt_gui.reload_importer.ReloadImporter._reimport (   self,
  name,
  globals_ = None,
  locals_ = None,
  fromlist = None,
  level = -1 
)
private

Definition at line 75 of file reload_importer.py.

◆ _reload()

def qt_gui.reload_importer.ReloadImporter._reload (   self,
  module 
)
private

Definition at line 64 of file reload_importer.py.

◆ add_reload_path()

def qt_gui.reload_importer.ReloadImporter.add_reload_path (   self,
  path 
)

Definition at line 59 of file reload_importer.py.

◆ disable()

def qt_gui.reload_importer.ReloadImporter.disable (   self)

Definition at line 56 of file reload_importer.py.

◆ enable()

def qt_gui.reload_importer.ReloadImporter.enable (   self)

Definition at line 53 of file reload_importer.py.

Member Data Documentation

◆ _excluded_modules

qt_gui.reload_importer.ReloadImporter._excluded_modules
private

Definition at line 47 of file reload_importer.py.

◆ _import

qt_gui.reload_importer.ReloadImporter._import
private

Definition at line 51 of file reload_importer.py.

◆ _import_stack

qt_gui.reload_importer.ReloadImporter._import_stack
private

Definition at line 49 of file reload_importer.py.

◆ _reload_paths

qt_gui.reload_importer.ReloadImporter._reload_paths
private

Definition at line 48 of file reload_importer.py.

◆ _reloaded_modules

qt_gui.reload_importer.ReloadImporter._reloaded_modules
private

Definition at line 50 of file reload_importer.py.


The documentation for this class was generated from the following file:


qt_gui
Author(s): Dirk Thomas
autogenerated on Sat Jun 25 2022 02:15:05