GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
go4py.internals.reimport Namespace Reference


def reimport


 reload = reload

Function Documentation

def 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

References go4py.internals.reimport.reload.

Variable Documentation

go4py.internals.reimport.reload = reload

Definition at line 9 of file

Referenced by go4py.internals.reimport.reimport().