If you add empty __init__.py files to each directory (to turn them into packages),
from ..Module_A import classA should work. Alex On Sun, Mar 29, 2015 at 9:03 PM, Dechen Jigme <dechen...@gmail.com> wrote: > Hi all, > > Currently I got stuck in importing a module in parent folder from Endpoint > API subfolder as following: > App > Module_A.py > EndpointB > b_api.py > So in b_api.py, I am trying to import classA in Module_A.py. > > I have been trying to work around as recommended in stackoverflow for > "importing a module in parent folder with Python" but none works. > Would you help me to figure out and work around for this case? > Thank you very much, > Best, > Dechen Jigme > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-appengine+unsubscr...@googlegroups.com. > To post to this group, send email to google-appengine@googlegroups.com. > Visit this group at http://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/547b40c8-21b5-49ed-98ec-873b8ddc5464%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/547b40c8-21b5-49ed-98ec-873b8ddc5464%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAE46Be8utNeLojfmZ9gugqqegLyNd9SJeQL93s%3DkHQLzPZ48zQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.