0

I'm relatively new to Python thus the question.

I'm working inside a python package a(as in a folder with init.py in it), now in my local directory I have a package b which has a set of classes(for example say user.py). How do I import user into a file inside package a. I tried,

import a

This doesn't work.

Stacker
  • 587
  • 4
  • 7
  • 11
  • 2
    Please create an overview of your folder / file structure and tell us from which working directory you are calling which Python file. Also add all the related import lines from the files. – Klaus D. Jan 31 '17 at 00:49
  • [This](http://stackoverflow.com/questions/9383014/cant-import-my-own-modules-in-python) might help you – nbryans Jan 31 '17 at 18:35

0 Answers0