w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Python: How to import sub-modules, from packages with the same name?

You need to have _init_.py files within those directories to make python treat then as a package instead of plain directories.

Refer to this discussion to learn more about init.py files.

Note:I have edited my previous answer by removing the irrelevant content based on the discussion with the poster of the query.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.