rename System class
This commit is contained in:
@@ -7,9 +7,9 @@ import sys
|
|||||||
from aman.com.Euroscope import Euroscope
|
from aman.com.Euroscope import Euroscope
|
||||||
from aman.config.AircraftPerformance import AircraftPerformance
|
from aman.config.AircraftPerformance import AircraftPerformance
|
||||||
from aman.config.Airport import Airport
|
from aman.config.Airport import Airport
|
||||||
import aman.config.System
|
from aman.config.System import System
|
||||||
|
|
||||||
class System:
|
class AMAN:
|
||||||
def findConfigPath():
|
def findConfigPath():
|
||||||
envvar = os.environ.get('AMAN_CONFIG_PATH')
|
envvar = os.environ.get('AMAN_CONFIG_PATH')
|
||||||
if None == envvar:
|
if None == envvar:
|
||||||
@@ -28,10 +28,10 @@ class System:
|
|||||||
self.aircraftPerformance = None
|
self.aircraftPerformance = None
|
||||||
self.receiver = None
|
self.receiver = None
|
||||||
|
|
||||||
configPath = System.findConfigPath()
|
configPath = AMAN.findConfigPath()
|
||||||
|
|
||||||
# read all system relevant configuration files
|
# read all system relevant configuration files
|
||||||
self.systemConfig = aman.config.System.System(os.path.join(configPath, 'System.ini'))
|
self.systemConfig = System(os.path.join(configPath, 'System.ini'))
|
||||||
print('Parsed System.ini')
|
print('Parsed System.ini')
|
||||||
|
|
||||||
# read the aircraft performance data
|
# read the aircraft performance data
|
||||||
@@ -50,6 +50,8 @@ class System:
|
|||||||
print('Parsing planner configuration for ' + icao)
|
print('Parsing planner configuration for ' + icao)
|
||||||
airportConfig = Airport(file, icao)
|
airportConfig = Airport(file, icao)
|
||||||
|
|
||||||
|
# TODO initialize the planner thread
|
||||||
|
|
||||||
# create the EuroScope receiver
|
# create the EuroScope receiver
|
||||||
self.receiver = Euroscope(configPath, self.systemConfig.Server)
|
self.receiver = Euroscope(configPath, self.systemConfig.Server)
|
||||||
|
|
||||||
Reference in New Issue
Block a user