Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MOiN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
technotroll
MOiN
Merge requests
!1
load assets from bundle path
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
load assets from bundle path
schneider/fix
into
main
Overview
1
Commits
1
Pipelines
0
Changes
2
Merged
load assets from bundle path
schneider
requested to merge
schneider/fix
into
main
Dec 1, 2023
Overview
1
Commits
1
Pipelines
0
Changes
2
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
18ceaf0d
1 commit,
Dec 1, 2023
2 files
+
2
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
__init__.py
+
1
−
15
View file @ 18ceaf0d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -9,21 +9,7 @@ import sys
class
MOiN
(
Application
):
def
__init__
(
self
,
app_ctx
:
ApplicationContext
)
->
None
:
super
().
__init__
(
app_ctx
)
self
.
image_path
=
""
paths
=
[
path
for
path
in
sys
.
path
if
path
.
startswith
(
"
/
"
)]
app_names
=
[
"
MOiN
"
,
"
technotroll-MOiN
"
]
for
path
in
paths
:
for
app_name
in
app_names
:
self
.
image_path
=
path
+
"
/apps/
"
+
app_name
+
"
/moin.png
"
# Try to load image from known paths and use first result
try
:
os
.
stat
(
self
.
image_path
)
break
except
OSError
:
pass
self
.
image_path
=
f
"
{
self
.
app_ctx
.
bundle_path
}
/moin.png
"
def
draw
(
self
,
ctx
:
Context
)
->
None
:
# Paint the background black
Loading