More import fixes for osx deprecated
This commit is contained in:
@@ -4,7 +4,10 @@ from gui.preferenceView import PreferenceView
|
||||
from gui.bitmapLoader import BitmapLoader
|
||||
|
||||
import gui.mainFrame
|
||||
from service.crest import Crest
|
||||
|
||||
if 'wxMac' not in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3, 0)):
|
||||
from service.crest import Crest
|
||||
|
||||
from service.settings import CRESTSettings
|
||||
|
||||
from wx.lib.intctrl import IntCtrl
|
||||
|
||||
@@ -4,7 +4,9 @@ import json
|
||||
import wx
|
||||
import requests
|
||||
|
||||
from service.crest import Crest, CrestModes
|
||||
if not 'wxMac' in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3,0)):
|
||||
from service.crest import Crest, CrestModes
|
||||
|
||||
from service.port import Port
|
||||
from service.fit import Fit
|
||||
|
||||
|
||||
@@ -60,7 +60,6 @@ from gui import graphFrame
|
||||
from service.settings import SettingsProvider
|
||||
from service.fit import Fit
|
||||
from service.character import Character
|
||||
from service.crest import Crest
|
||||
from service.update import Update
|
||||
|
||||
# import this to access override setting
|
||||
@@ -76,6 +75,7 @@ import threading
|
||||
import webbrowser
|
||||
|
||||
if 'wxMac' not in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3, 0)):
|
||||
from service.crest import Crest
|
||||
from service.crest import CrestModes
|
||||
from gui.crestFittings import CrestFittings, ExportToEve, CrestMgmt
|
||||
|
||||
|
||||
@@ -36,7 +36,10 @@ from service.fit import Fit as svcFit
|
||||
import wx
|
||||
|
||||
from eos.types import State, Slot, Module, Cargo, Ship, Drone, Implant, Booster, Citadel, Fighter, Fit
|
||||
from service.crest import Crest
|
||||
|
||||
if 'wxMac' not in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3, 0)):
|
||||
from service.crest import Crest
|
||||
|
||||
from service.market import Market
|
||||
|
||||
logger = logging.getLogger("pyfa.service.port")
|
||||
|
||||
Reference in New Issue
Block a user