Skip to content

Commit

Permalink
Merge pull request #11 from bisq-network/make-proto-downloader-runnab…
Browse files Browse the repository at this point in the history
…le-from-any-dir

Make proto downloader and python setup script runnable from any dir
  • Loading branch information
ghubstan authored Jul 5, 2022
2 parents 3170e71 + 3d4bd70 commit 0b830cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proto-downloader/download-bisq-protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ REPO_OWNER="bisq-network"
REPO_BRANCH="master"
REPO_PROTO_DIR_URL="https://raw.githubusercontent.com/$REPO_OWNER/bisq/$REPO_BRANCH/proto/src/main/proto"

# Get the script directory (relative to the current directory), cd into the directory, use pwd to get the absolute path.
export SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cd "$SCRIPT_DIR"

echo "Downloading Bisq protobuf files from $REPO_PROTO_DIR_URL to $PROTO_PATH directory..."
echo "You can skip this step and copy your own local .proto files instead."

Expand Down
4 changes: 4 additions & 0 deletions python-examples/run-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# This script must be run from this directory.

# Get the script directory (relative to the current directory), cd into the directory, use pwd to get the absolute path.
export SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cd "$SCRIPT_DIR"

####################################################################################
# Install python3-venv if necessary.
####################################################################################
Expand Down

0 comments on commit 0b830cd

Please sign in to comment.