This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import importlib.util | |
from typing import Callable | |
def import_from_file(script_path: str, function_name: str) -> Callable: | |
""" | |
Imports a function from a Python script file given the file path and the function name. | |
Args: |
OlderNewer