Skip to content

Commit

Permalink
Change .. to dirname
Browse files Browse the repository at this point in the history
Signed-off-by: kamilsa <[email protected]>
  • Loading branch information
kamilsa committed Dec 27, 2017
1 parent ac54a19 commit 76ec19f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/python/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
cd $(dirname $0)

# generate iroha lib
cmake -DSWIG_PYTHON=ON ../..
make -j"$(getconf _NPROCESSORS_ONLN)" irohapy
CURDIR="$(cd "$(dirname "$0")"; pwd)"
IROHA_HOME="$(dirname $(dirname "${CURDIR}"))"
cmake -H$IROHA_HOME -Bbuild -DSWIG_PYTHON=ON;
cmake --build build/ --target irohapy -- -j"$(getconf _NPROCESSORS_ONLN)"

# generate proto files in current dir
protoc --proto_path=../../schema --python_out=. block.proto primitive.proto commands.proto queries.proto responses.proto endpoint.proto
Expand Down

0 comments on commit 76ec19f

Please sign in to comment.