Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ewoksorange
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
workflow
ewoks
ewoksorange
Merge requests
!2
Resolve "EwoksCore examples refactored"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "EwoksCore examples refactored"
1-ewokscore-examples-refactored
into
main
Overview
0
Commits
2
Pipelines
1
Changes
14
Merged
Wout De Nolf
requested to merge
1-ewokscore-examples-refactored
into
main
3 years ago
Overview
0
Commits
2
Pipelines
1
Changes
14
Expand
Closes
#1 (closed)
Waiting for
ewokscore!2 (merged)
Edited
3 years ago
by
Wout De Nolf
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
ac87bab5
2 commits,
3 years ago
14 files
+
79
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
ewoksorange/canvas/__main__.py
+
20
−
9
Options
"""
Main entry point
python -m ewoksorange.canvas
python -m ewoksorange.canvas
--with_example
Which is equivalent to
o
Which is equivalent to
python -m Orange.canvas
Exists in case we need to
register th
ings
before launching
the canvas
but it
register
s
th
e example Addon
before launching
.
"""
@@ -14,12 +14,23 @@ import sys
from
Orange.canvas.__main__
import
main
as
_main
def
main
(
**
kw
):
# Register an addon library with wasn't registered at runtime.
# import orange3unregistered
# from ewoksorange.registration import register_addon_package
# register_addon_package(orange3unregistered, distroname="ewoks_example_addon")
_main
(
**
kw
)
def
main
(
argv
=
None
):
if
argv
is
None
:
argv
=
sys
.
argv
try
:
argv
.
pop
(
argv
.
index
(
"
--with_example
"
))
except
ValueError
:
with_example
=
False
else
:
with_example
=
True
if
with_example
:
from
ewoksorange.registration
import
register_addon_package
from
ewoksorange.tests.examples
import
ewoks_example_addon
register_addon_package
(
ewoks_example_addon
)
_main
(
argv
)
if
__name__
==
"
__main__
"
:
Loading