PyMca Package

PyMca Package

This is a convenience module to make all the available modules accessible for use in python programs without having to know the underlying structure of the repository.

This allows to type:

from PyMca5.PyMca import HDF5Widget

instead of:

from PyMca5.PyMcaGui.io.hdf5 import HDF5Widget
PyMca5.PyMca.getPackages(directory)[source]

Identify the different packages present in a directory by recursevily looking for the presence of the __init__.py file in the different subdirectories.

Parameters:directory (string) – Directory path
Returns:List of packages.
Return type:List (default is an empty list)