Re: [Tutor] module import from a packager works inconsistent between REPL and command line

2019-04-26 Thread Arup Rakshit
On 26/04/19 10:58 AM, Steven D'Aprano wrote: On Thu, Apr 25, 2019 at 05:40:18PM +0530, Arup Rakshit wrote: I have a small app like this: Please simplify your code to the minimum needed to demonstrate the problem you are asking about. This bit is excellent: pizza-shop$ tree . . └── pizzapy

Re: [Tutor] module import from a packager works inconsistent between REPL and command line

2019-04-25 Thread Steven D'Aprano
On Thu, Apr 25, 2019 at 05:40:18PM +0530, Arup Rakshit wrote: > I have a small app like this: Please simplify your code to the minimum needed to demonstrate the problem you are asking about. This bit is excellent: > pizza-shop$ tree . > . > └── pizzapy > ├── __init__.py > ├── menu.py >

[Tutor] module import from a packager works inconsistent between REPL and command line

2019-04-25 Thread Arup Rakshit
I have a small app like this: pizza-shop$ tree . . └── pizzapy ├── __init__.py ├── menu.py └── pizza.py 1 directory, 3 files # menu.py from typing import List from pizza import Pizza MENU: List[Pizza] = [ Pizza('Margherita', 30, 10.0), Pizza('Carbonara', 45, 14.99), Pi