Author kristjan.jonsson
Recipients Pascal.Chambon, barry, brett.cannon, eric.snow, isoschiz, kristjan.jonsson, methane, ncoghlan, pconnell, pje
Date 2013-06-05.16:07:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
And I can report that it works, in 2.7, with code such as
b = importlib.import_module("..b", __name__)
a = importlib.import_module("..a", __name__)

Still, it seems odd that a whole "importlib" is requried ot resolve the relative import, and that it doesn"t work with __import__, given how "supposedly" the import statement is supposed to translate to a __import__ call internally.  One would think that __import__ had access to the relative path machinery somehow.
Date User Action Args
2013-06-05 16:07:26kristjan.jonssonsetrecipients: + kristjan.jonsson, barry, brett.cannon, pje, ncoghlan, methane, eric.snow, pconnell, isoschiz, Pascal.Chambon
2013-06-05 16:07:26kristjan.jonssonsetmessageid: <>
2013-06-05 16:07:26kristjan.jonssonlinkissue17636 messages
2013-06-05 16:07:25kristjan.jonssoncreate