import_file¶
- extension_helpers.import_file(filename, name=None)¶
Imports a module from a single file without importing the package that the file is in.
This is useful for cases where a file needs to be imported from
setup_package.py
files without importing the parent package. The returned module will have the optionalname
if given, or else a name generated from the filename.