forked from OpenBazaar/OpenBazaar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenbazaar
More file actions
executable file
·22 lines (20 loc) · 797 Bytes
/
openbazaar
File metadata and controls
executable file
·22 lines (20 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
if [ "$(uname)" = Darwin ] ; then
export DYLD_LIBRARY_PATH=$(brew --prefix openssl)/lib:$DYLD_LIBRARY_PATH
elif [ -f /etc/fedora-release ]; then
export LD_LIBRARY_PATH=/opt/openssl-compat-bitcoin/lib:$LD_LIBRARY_PATH
fi
# if being executed from installation into some base directory,
# we make sure we are running standing at this location
if expr "$0" : '.*/bin/openbazaar$' > /dev/null ; then
PYBASE=${0%/bin/openbazaar}/share/openbazaar
(cd "$PYBASE" && python -m node.openbazaar "$@") &
else
# openbazaar not installed in the system, trying local install
# with virtual environment first
if [ -f ./env/bin/python -a -r ./env/bin/python -a -x ./env/bin/python ] ; then
./env/bin/python -m node.openbazaar "$@" &
else
python -m node.openbazaar "$@" &
fi
fi