Browse Source

Tweak startup scripts way to find python3

tags/1.9.8
falkTX 7 years ago
parent
commit
a1d4aa8dc1
8 changed files with 32 additions and 24 deletions
  1. +3
    -3
      data/carla
  2. +3
    -3
      data/carla-control
  3. +7
    -3
      data/carla-database
  4. +3
    -3
      data/carla-jack-multi
  5. +3
    -3
      data/carla-jack-single
  6. +3
    -3
      data/carla-patchbay
  7. +3
    -3
      data/carla-rack
  8. +7
    -3
      data/carla-settings

+ 3
- 3
data/carla View File

@@ -1,8 +1,8 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi



+ 3
- 3
data/carla-control View File

@@ -1,8 +1,8 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi



+ 7
- 3
data/carla-database View File

@@ -1,11 +1,15 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi

if [ "$1" = "--gdb" ]; then
PYTHON="gdb --args $PYTHON"
fi

INSTALL_PREFIX="X-PREFIX-X"
export PATH="$INSTALL_PREFIX"/lib/carla:$PATH
exec $PYTHON "$INSTALL_PREFIX"/share/carla/carla_database.py --with-libprefix="$INSTALL_PREFIX" "$@"

+ 3
- 3
data/carla-jack-multi View File

@@ -1,8 +1,8 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi



+ 3
- 3
data/carla-jack-single View File

@@ -1,8 +1,8 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi



+ 3
- 3
data/carla-patchbay View File

@@ -1,8 +1,8 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi



+ 3
- 3
data/carla-rack View File

@@ -1,8 +1,8 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi



+ 7
- 3
data/carla-settings View File

@@ -1,11 +1,15 @@
#!/bin/sh

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=$(which python3 2>/dev/null)
if [ ! -f ${PYTHON} ]; then
PYTHON=python
fi

if [ "$1" = "--gdb" ]; then
PYTHON="gdb --args $PYTHON"
fi

INSTALL_PREFIX="X-PREFIX-X"
export PATH="$INSTALL_PREFIX"/lib/carla:$PATH
exec $PYTHON "$INSTALL_PREFIX"/share/carla/carla_settings.py --with-libprefix="$INSTALL_PREFIX" "$@"

Loading…
Cancel
Save