Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
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
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
Nyx
LarvaTagger.jl
Commits
fb6e90d1
Commit
fb6e90d1
authored
1 year ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
OPEN_BROWSER env variable
parent
5fcec47c
No related branches found
No related tags found
1 merge request
!18
Set of commits to be tagged v0.18.3
Pipeline
#131577
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/install.sh
+5
-5
5 additions, 5 deletions
scripts/install.sh
scripts/larvatagger
+9
-6
9 additions, 6 deletions
scripts/larvatagger
with
14 additions
and
11 deletions
scripts/install.sh
+
5
−
5
View file @
fb6e90d1
...
...
@@ -15,8 +15,8 @@ if [ "$1" = "--uninstall" ]; then
if
[
-d
"
$env
"
]
;
then
# clear the virtual environments
env
=
$(
dirname
"
$env
"
)
rm
-rf
"
$env
/maggotuba*
"
rm
-rf
"
$env
/taggingbackends*
"
rm
-rf
"
$env
"
/maggotuba
*
rm
-rf
"
$env
"
/taggingbackends
*
fi
fi
rm
-rf
"
$BIN_DIR
/larvatagger"
...
...
@@ -71,7 +71,7 @@ for arg in "$@"; do
done
if
[
-n
"
$WITH_DEFAULT_BACKEND
"
]
;
then
if
[
"
`
uname
`
"
=
"Darwin"
]
;
then
echo
"WARNING: the default tagging backend
doe
s not
work on
macOS"
echo
"WARNING: the default tagging backend
i
s not
supported by
macOS"
fi
if
!
command
-v
python3.8 1>/dev/null 2>&1
;
then
if
command
-v
pyenv 1>/dev/null 2>&1
;
then
...
...
@@ -124,7 +124,7 @@ if [ -z "$WITH_DEFAULT_BACKEND" ]; then
cat
<<
EOF
>
$BIN_DIR
/larvatagger
#!/usr/bin/env bash
"
$LARVATAGGER_PATH
/LarvaTagger.jl/scripts/larvatagger"
\$
@
OPEN_BROWSER=1
"
$LARVATAGGER_PATH
/LarvaTagger.jl/scripts/larvatagger"
\$
@
EOF
else
...
...
@@ -171,7 +171,7 @@ fi
cat
<<
EOF
>
$BIN_DIR
/larvatagger
#!/usr/bin/env bash
JULIA_PROJECT="
$(
realpath
"
$LARVATAGGER_PATH
/TaggingBackends"
)
" BACKENDS_PATH="
$LARVATAGGER_PATH
" "
$LARVATAGGER_PATH
/LarvaTagger.jl/scripts/larvatagger"
\$
@
JULIA_PROJECT="
$(
realpath
"
$LARVATAGGER_PATH
/TaggingBackends"
)
" BACKENDS_PATH="
$LARVATAGGER_PATH
"
OPEN_BROWSER=1
"
$LARVATAGGER_PATH
/LarvaTagger.jl/scripts/larvatagger"
\$
@
EOF
fi
...
...
This diff is collapsed.
Click to expand it.
scripts/larvatagger
+
9
−
6
View file @
fb6e90d1
...
...
@@ -17,13 +17,16 @@ fi
case
$cmd
in
open
)
shift
if
[
-z
"
$BACKENDS_PATH
"
]
;
then
"
$currentdir
/larvatagger-gui.jl"
$@
else
datapath
=
$1
shift
"
$currentdir
/larvatagger-gui.jl"
"
$datapath
"
--backends
=
"
$BACKENDS_PATH
"
$@
datapath
=
$1
shift
args
=
if
[
-n
"
$BACKENDS_PATH
"
]
;
then
args
=
"--backends=
\"
$BACKENDS_PATH
\"
$args
"
fi
if
[
-n
"
$OPEN_BROWSER
"
]
;
then
args
=
"--browser
$args
"
fi
eval
"
\"
$currentdir
/larvatagger-gui.jl
\"
\"
$datapath
\"
$args$@
"
;;
train|predict
)
...
...
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