Class 1 (main): Aviation
Class 2/3 (not main, but need objects from this class): Airport, Flight
In Aviation class file I did the following:
from Flight import *
from Airport import *
Class 1 (main): Aviation
Class 2/3 (not main, but need objects from this class): Airport, Flight
from Flight import *
from Airport import *
You would have to import the file name. For example if the file name for class 2/3 is fly.py
. You have to do from fly import Flight, Airport
. Make sure they are in the same folder. If they aren't in the same folder, try this:
import sys
sys.path.insert(0, 'Path to your folder')