GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
go4py.internals.reimport Namespace Reference

Functions

 reimport (modulename)
 

Variables

 reload = reload
 

Function Documentation

◆ reimport()

go4py.internals.reimport.reimport ( modulename)
Reloads modulename if it was imported before, imports it otherwise.

Workaround for some implications of the otherwise very useful fact
that TPython's interpreter state is preserved in between calls:
Assume a main script and a library module. Once the script has 
imported the library, changes to the library are not considered 
anymore. A cached version is used instead. To see changes a reload 
is necessary. This function should simply do the right thing...

Definition at line 21 of file reimport.py.

References reload.

Variable Documentation

◆ reload

go4py.internals.reimport.reload = reload

Definition at line 9 of file reimport.py.

Referenced by reimport().