Skip to content

Commit

Permalink
moved imports of server after version check (#1667)
Browse files Browse the repository at this point in the history
* moved imports of server after version check

* move only the server import

* linebreak removed
  • Loading branch information
ReimarBauer authored Feb 28, 2023
1 parent a5121c1 commit f97b9c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mslib/mswms/mswms.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
import sys

from mslib import __version__
from mslib.mswms.wms import mswms_settings, server
from mslib.mswms.wms import app as application
from mslib.utils import setup_logging
from mslib.utils.qt import Updater, Worker
from mslib.mswms.wms import app as application


def main():
Expand Down Expand Up @@ -100,6 +99,9 @@ def main():

setup_logging(args)

# keep the import after the version check. This creates all layers.
from mslib.mswms.wms import mswms_settings, server

if args.action == "gallery":
if args.plot_types is None:
plot_types = ["Top", "Side", "Linear"]
Expand Down

0 comments on commit f97b9c8

Please sign in to comment.