Skip to content

Commit

Permalink
Remove PATH modifiers from launch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Borup committed Mar 6, 2020
1 parent bf5367a commit f7eacdc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
1 change: 1 addition & 0 deletions launch/GPI.desktop
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# No longer in use - deprecate at some point
[Desktop Entry]
Version=1.0
Name=GPI
Expand Down
2 changes: 2 additions & 0 deletions launch/gpi.app
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
# MAKES NO WARRANTY AND HAS NO LIABILITY ARISING FROM ANY USE OF THE
# SOFTWARE IN ANY HIGH RISK OR STRICT LIABILITY ACTIVITIES.

# No longer in use - deprecate at some point

# The GPI launcher script for the app.
ANACONDA=/opt/anaconda1anaconda2anaconda3
# The launcher must point to a script with the ".command" suffix so that 'open'
Expand Down
5 changes: 0 additions & 5 deletions launch/gpi.command
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ ANACONDA=/opt/anaconda1anaconda2anaconda3
PYTHON=${ANACONDA}/bin/python
GPI_LAUNCH=${ANACONDA}/bin/gpi_launch

BINDIR="$ANACONDA/bin"
if ! echo $PATH | grep -q $BINDIR ; then
PATH="${BINDIR}:${PATH}"
fi

GPI_LINK=/tmp/GPI

# OSX
Expand Down
15 changes: 0 additions & 15 deletions launch/gpi_cmd.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,5 @@ set ANACONDA=/opt/anaconda1anaconda2anaconda3
set PYTHON=%ANACONDA%\python
set GPI_LAUNCH=%ANACONDA%\Scripts\gpi_launch

:: Add needed folders to the path if launching from outside an active conda
set ANACONDA_WIN=%ANACONDA:/=\%
echo %PATH% | findstr %ANACONDA_WIN% > NUL
if %ERRORLEVEL% NEQ 0 goto :fixpath
goto :endif

:fixpath
set PATH=%ANACONDA_WIN%\bin;%PATH%
set PATH=%ANACONDA_WIN%\Scripts;%PATH%
set PATH=%ANACONDA_WIN%\Library\bin;%PATH%
set PATH=%ANACONDA_WIN%\Library\usr\bin;%PATH%
set PATH=%ANACONDA_WIN%\Library\mingw-w64\bin;%PATH%
set PATH=%ANACONDA_WIN%;%PATH%
:endif

%PYTHON% %GPI_LAUNCH% -style Windows %*

0 comments on commit f7eacdc

Please sign in to comment.