The Python Oracle

Relative imports for the billionth time

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC G Dvoks String Quartet No 12 Ame 2

--

Chapters
00:00 Question
02:18 Accepted answer (Score 1991)
10:32 Answer 2 (Score 85)
11:32 Answer 3 (Score 30)
12:18 Answer 4 (Score 17)
13:49 Thank you

--

Full question
https://stackoverflow.com/questions/1413...

Question links:
http://www.python.org/dev/peps/pep-0328/
http://docs.python.org/2/tutorial/module...
[Python packages: relative imports]: https://stackoverflow.com/questions/1005...
[python relative import example code does not work]: https://stackoverflow.com/questions/9123...
[Relative imports in python 2.5]: https://stackoverflow.com/questions/8299...
[Relative imports in Python]: https://stackoverflow.com/questions/4175...
[Python: Disabling relative import]: https://stackoverflow.com/questions/1323...

Answer 3 links:
[Dorian B]: https://stackoverflow.com/users/5420054/...
[article]: https://stackoverflow.com/questions/5286...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #import #relativepath #pythonpackaging #relativeimport

#avk47