Commit 0611ff08 authored by Henri Payno's avatar Henri Payno
Browse files

Merge branch '14-add-default-widgets-for-tasks-that-don-t-have-any' of...

Merge branch '14-add-default-widgets-for-tasks-that-don-t-have-any' of gitlab.esrf.fr:payno/ewoksorange into 14-add-default-widgets-for-tasks-that-don-t-have-any
parents f33703ed 08951475
Pipeline #56411 passed with stages
in 1 minute and 59 seconds
...@@ -13,7 +13,42 @@ import sys ...@@ -13,7 +13,42 @@ import sys
import logging import logging
from contextlib import contextmanager from contextlib import contextmanager
from Orange.canvas.__main__ import main as orange_main from Orange.canvas.__main__ import main as orange_main
from orangecanvas.main import arg_parser from ..orange_version import ORANGE_VERSION
if ORANGE_VERSION == ORANGE_VERSION.henri_fork:
import argparse
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument(
"--no-discovery",
action="store_true",
help="Don't run widget discovery (use full cache instead)",
)
arg_parser.add_argument(
"--force-discovery",
action="store_true",
help="Force full widget discovery (invalidate cache)",
)
arg_parser.add_argument(
"--no-welcome", action="store_true", help="Don't show welcome dialog."
)
arg_parser.add_argument(
"--no-splash", action="store_true", help="Don't show splash screen."
)
arg_parser.add_argument(
"--stylesheet",
help="Application level CSS style sheet to use",
type=str,
default=None,
)
arg_parser.add_argument(
"--config",
help="Configuration namespace",
type=str,
default=None,
)
else:
from orangecanvas.main import arg_parser
from ewoksorange.registration import register_addon_package from ewoksorange.registration import register_addon_package
from ewoksorange import ewoks_addon from ewoksorange import ewoks_addon
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment