How to import module when module name has a ‘-‘ dash or hyphen in it? August 17, 2022 by Magenaut I want to import foo-bar.py. This works: