Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gga_load_data
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
abims
e-infra
gga_load_data
Commits
bf9daf4d
Commit
bf9daf4d
authored
3 years ago
by
Loraine Gueguen
Browse files
Options
Downloads
Patches
Plain Diff
fix banner copy if exists
parent
0cadbdad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!12
Release_2.0 next
,
!9
Release 2.0 (merge dev to master)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gga_init.py
+1
-1
1 addition, 1 deletion
gga_init.py
with
1 addition
and
1 deletion
gga_init.py
+
1
−
1
View file @
bf9daf4d
...
@@ -64,7 +64,7 @@ class DeploySpeciesStack(speciesData.SpeciesData):
...
@@ -64,7 +64,7 @@ class DeploySpeciesStack(speciesData.SpeciesData):
if
constants
.
CONF_TRIPAL_BANNER_PATH
in
self
.
config
.
keys
():
if
constants
.
CONF_TRIPAL_BANNER_PATH
in
self
.
config
.
keys
():
if
not
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]
==
""
and
os
.
path
.
isfile
(
os
.
path
.
abspath
(
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
])):
if
not
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]
==
""
and
os
.
path
.
isfile
(
os
.
path
.
abspath
(
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
])):
banner_dest_path
=
os
.
path
.
join
(
self
.
species_dir
,
os
.
path
.
abspath
(
"
banner.png
"
))
banner_dest_path
=
os
.
path
.
join
(
self
.
species_dir
,
os
.
path
.
abspath
(
"
banner.png
"
))
if
not
os
.
path
.
isfile
(
banner_dest_path
)
or
not
os
.
path
.
islink
(
banner_dest_path
)
or
not
os
.
path
.
samefile
(
os
.
path
.
abspath
(
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]),
banner_dest_path
):
if
not
os
.
path
.
isfile
(
banner_dest_path
)
and
not
os
.
path
.
islink
(
banner_dest_path
)
and
not
os
.
path
.
samefile
(
os
.
path
.
abspath
(
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]),
banner_dest_path
):
os
.
symlink
(
os
.
path
.
abspath
(
self
.
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]),
banner_dest_path
)
os
.
symlink
(
os
.
path
.
abspath
(
self
.
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]),
banner_dest_path
)
logging
.
info
(
"
Custom banner added: symlink from %s
"
%
self
.
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
])
logging
.
info
(
"
Custom banner added: symlink from %s
"
%
self
.
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
])
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment