-2

I've found lots of similar questions, but I think that my case is special one. I have following arrangement of files:

|main.py
|main
    |--__init__.py

What I need is to import some class to main.py from __init__.py.

Thanks for help.

mr_bulrathi
  • 514
  • 7
  • 23
  • 1
    You have a good explanation of __init__.py http://stackoverflow.com/questions/448271/what-is-init-py-for – mvidovic Apr 06 '16 at 09:07

1 Answers1

1

maybe this would be helpful for you:

from main.__init__ import classname

this worked for me

János Farkas
  • 453
  • 5
  • 14