Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved imports of server after version check #1667

Merged
merged 3 commits into from
Feb 28, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 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 @@ -83,7 +82,8 @@ def main():
if args.version:
print("***********************************************************************")
print("\n Mission Support System (MSS)\n")
print("***********************************************************************")
print("***"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somehow enter on a wrong place :(
strange

"********************************************************************")
print("Documentation: http://mss.rtfd.io")
print("Version:", __version__)
sys.exit()
Expand All @@ -100,6 +100,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