4 ms·
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 =
by ChrisSD 7y ago
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-source-file-directly https://docs.python.org/3/library/importlib.html#importing-a...
- comex 7y agoGross...