Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
Fix serve.py running
Browse files Browse the repository at this point in the history
  • Loading branch information
richtier committed Jul 18, 2018
1 parent f5b8206 commit dec6f4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ To enable this first go [here](https://developer.amazon.com/avs/home.html#/avs/h
Then run:

```sh
python ./serve.py \
python ./avs_client/refreshtoken/serve.py \
--device-type-id=enter-device-type-id-here \
--client-id=enter-client-id-here \
--client-secret=enter-client-secret-here
Expand Down
8 changes: 7 additions & 1 deletion serve.py → avs_client/refreshtoken/serve.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from avs_client.refreshtoken import arg_parser, http_server, handlers
import os
import sys

# solve import error when calling this script from project root.
sys.path.append(os.getcwd())

from avs_client.refreshtoken import arg_parser, http_server, handlers # NOQA


def serve_forever(address, port, client_id, client_secret, device_type_id):
Expand Down

0 comments on commit dec6f4b

Please sign in to comment.