Technically, yes: `__import__('foo-bar')`

But it's almost certainly not considered good style. And I don't think I've 
ever seen it done in practice. For example, where I work, in a large codebase 
that uses hyphen-delimited filenames for C++ code, my team breaks that 
convention to use underscore_delimited filenames for python code for this 
reason.

Reply via email to