Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
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
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
Main Repositories
otb
Commits
039e0e34
Commit
039e0e34
authored
7 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
ENH: export OTB_APPLICATION_PATH only if otbenv.profile does not exists
parent
c2856ae9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/otbcli.sh.in
+7
-9
7 additions, 9 deletions
CMake/otbcli.sh.in
CMake/otbgui.sh.in
+7
-9
7 additions, 9 deletions
CMake/otbgui.sh.in
with
14 additions
and
18 deletions
CMake/otbcli.sh.in
+
7
−
9
View file @
039e0e34
...
...
@@ -16,15 +16,6 @@ else
OTB_CLI_LAUNCHER
=
otbApplicationLauncherCommandLine
fi
# works for install tree
if
[
-d
"
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@"
]
then
OTB_APPLICATION_PATH
=
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@:
$OTB_APPLICATION_PATH
fi
# export it to make it available to otbApplicationLauncherCommandLine environment
export
OTB_APPLICATION_PATH
# avoid numerical issues caused by locale
export
LC_NUMERIC
=
C
...
...
@@ -32,6 +23,13 @@ export LC_NUMERIC=C
# Note that OTB_APPLICATION_PATH is reset here.
if
[
-f
"
$CURRENT_SCRIPT_DIR
/../otbenv.profile"
]
;
then
.
"
$CURRENT_SCRIPT_DIR
/../otbenv.profile"
else
# works for install tree
if
[
-d
"
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@"
]
;
then
OTB_APPLICATION_PATH
=
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@:
$OTB_APPLICATION_PATH
fi
# export it to make it available to otbApplicationLauncherCommandLine environment
export
OTB_APPLICATION_PATH
fi
# start the application
...
...
This diff is collapsed.
Click to expand it.
CMake/otbgui.sh.in
+
7
−
9
View file @
039e0e34
...
...
@@ -16,21 +16,19 @@ else
OTB_GUI_LAUNCHER
=
otbApplicationLauncherQt
fi
# use the default install tree path for applications
if
[
-d
"
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@"
]
then
OTB_APPLICATION_PATH
=
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@:
$OTB_APPLICATION_PATH
fi
# export it to make it available to otbApplicationLauncherCommandLine environment
export
OTB_APPLICATION_PATH
# avoid numerical issues caused by locale
export
LC_NUMERIC
=
C
# Export GDAL_DATA, EPSG_CSV
if
[
-f
"
$CURRENT_SCRIPT_DIR
/../otbenv.profile"
]
;
then
.
"
$CURRENT_SCRIPT_DIR
/../otbenv.profile"
else
# use the default install tree path for applications
if
[
-d
"
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@"
]
;
then
OTB_APPLICATION_PATH
=
$CURRENT_SCRIPT_DIR
/../@OTB_INSTALL_APP_DIR@:
$OTB_APPLICATION_PATH
fi
# export it to make it available to otbApplicationLauncherCommandLine environment
export
OTB_APPLICATION_PATH
fi
# start the application
...
...
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