Update src/axolotl/prompt_strategies/base.py
Co-authored-by: Dan Saunders <danjsaund@gmail.com>
This commit is contained in:
@@ -12,10 +12,12 @@ LOG = logging.getLogger("axolotl")
|
|||||||
def import_from_path(module_name: str, file_path: str):
|
def import_from_path(module_name: str, file_path: str):
|
||||||
"""
|
"""
|
||||||
Import a module from a file path.
|
Import a module from a file path.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
module_name (str): Name of the module.
|
module_name: Name of the module.
|
||||||
file_path (str): Path to the file.
|
file_path: Path to the file.
|
||||||
Feturns:
|
|
||||||
|
Returns:
|
||||||
module: The imported module.
|
module: The imported module.
|
||||||
"""
|
"""
|
||||||
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user