module1
module2
And at another location i have the same package: abc
abc
module3
module4
How can i import them all?
Please format the code you posted, by wrapping it in triple backticks. -> `
from abc import module 1
Sounds like a name conflict. You should have a higher level namespace that can help differentiate between the two
a) Simple is better than complex – i.e. don't do that b) If you think you need that complexity, read up on namespace packages
Обсуждают сегодня