import importlib
importlib.import_module('file.py')
error: ModuleNotFoundError: No module named 'file.py'; 'file' is not a package
Is this a good way of running one file in another? If not, could you please tell me a better way?
Thank you in advance!