ich habe hier ein Stück Code, welches mit dem imp-Modul ein externes Modul einbindet (die __init__.py-Datei davon).
Die Ordnerstruktur sieht so aus:
Code: Alles auswählen
meinmodul.py
ordner
__init__.py (wird aus meinmodul.py importiert)
Code: Alles auswählen
ordner/__init__.py:1: RuntimeWarning: Parent module 'ordner/__init__' not found while handling absolute import
(ein import-Statement in __init__.py)
Was mache ich falsch?