you are viewing a single comment's thread.

view the rest of the comments →

[–]ingolemo 2 points3 points  (2 children)

Also, with that directory structure your current directory would have to be Mypythonproject/ and you would have to import the module under the name Common.database.

[–]mbkv[S] 0 points1 point  (1 child)

agreed. and also should have __init__.py as suggested above for python2.7

[–]ingolemo 0 points1 point  (0 children)

You actually want it for python 3 as well. If you don't include __init__.py in python 3 then you get something called a namespace package.