Skip to content

Commit

Permalink
Explicitly use python2 (#9)
Browse files Browse the repository at this point in the history
* Explicitly use python2
 Otherwise this code fails with `python3`.
 Fixes #8
  • Loading branch information
ggreif authored Jan 28, 2020
1 parent da18cb9 commit cbbbfba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ install:
script:
- sh bootstrap.sh
- ID=$(xxd -p canisters/profile/_canister.id)
- CRC=$(python -c "import crc8;h=crc8.crc8();h.update('$ID'.decode('hex'));print(h.hexdigest())")
- CRC=$(python2 -c "import crc8;h=crc8.crc8();h.update('$ID'.decode('hex'));print(h.hexdigest())")
- wget -O index.html http://127.0.0.1:8000/?canisterId=ic:$ID$CRC
- cat index.html
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ docker run \
Open the canister frontend in your web browser.
```bash
ID=$(xxd -p canisters/profile/_canister.id)
CRC=$(python -c "import crc8;h=crc8.crc8();h.update('$ID'.decode('hex'));print(h.hexdigest())")
CRC=$(python2 -c "import crc8;h=crc8.crc8();h.update('$ID'.decode('hex'));print(h.hexdigest())")
xdg-open "http://127.0.0.1:8000/?canisterId=ic:$ID$CRC"
```

0 comments on commit cbbbfba

Please sign in to comment.