Change your import in test.py to:
from .hello import hello1
More Related Contents:
- Loading JSON file Using Python Utils Library
- Importing modules from parent folder
- How to list all functions in a Python module?
- `from … import` vs `import .` [duplicate]
- How to make a cross-module variable?
- Why is Python running my module when I import it, and how do I stop it?
- Python: importing a sub‑package or sub‑module
- Can’t import my own modules in Python
- Python pip install module is not found. How to link python to pip location?
- How to import all submodules?
- PyCharm error: ‘No Module’ when trying to import own module (python script)
- What could cause a python module to be imported twice?
- Namespaces with Module Imports
- Does Python have a package/module management system?
- Checking a Python module version at runtime
- Can’t load Python modules installed via pip from site-packages directory
- Python: Sharing global variables between modules and classes therein
- In Python, can I call the main() of an imported module?
- ImportError on python 3, worked fine on python 2.7
- Python: import module from another directory at the same level in project hierarchy
- Python importing a module from a parallel directory
- Bypass confirmation prompt for pip uninstall
- Python: Why should ‘from import *’ be prohibited?
- from … import OR import … as for modules
- How do I extend a python module? Adding new functionality to the `python-twitter` package
- Can you define aliases for imported modules in Python?
- Python modules with identical names (i.e., reusing standard module names in packages)
- Python modules with submodules and functions
- How to properly use relative or absolute imports in Python modules?
- Loading environment modules within a python script