Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's been deprecated as well. The current docs say you should do this

    spec = importlib.util.spec_from_file_location(module_name, file_path) 
    module = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(module)
https://docs.python.org/3/library/importlib.html#importing-a...


Gross...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: