PyStartup
Previous  Top  Next

The [PyStartup] section allows you to import Python modules and packages and to execute Python statements at startup.


EntryDescription  
ImportThe module or package to import. Do not specify the file extension. The module name specified should be the same that you would use in a Python import statement. The module or package must be in the Python search path to be loaded successfully.  
ExecThis entry executes the Python statement listed. This is especially useful to import startup files into the __main__ namespace. Please check the FAQ for more details on how to configure startup behavior.  

Example
The following example lists a typical startup scenario. The package TC_TLM_Load is imported and accessible from the console window as TC_TLM_Load. The Startup.py module is loaded into the __main__ namespace and all attributes defined in the startup module will be available from __main__.


[PyStartupMaster]
Import = TC_TLM_Load
Exec   = from Common.Startup import *
Exec   = from i_LORRI.StartupMaster import *