commit 21b8d924c847c503540e3e8672407922c585d1ba
parent 543cf84ec24fdfae9cdfaa6defefeca5938cd2a5
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Sun, 26 Mar 2017 22:39:36 +0200
fix import + pytaler install instructions
Diffstat:
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/python/doc/tutorial.texi b/python/doc/tutorial.texi
@@ -407,6 +407,18 @@ def pay():
@section Running the Example
+The example depends on the @code{pytaler} library. The next commands
+show how to install it:
+
+@smallexample
+$ cd python/lib/
+$ export TALER_PREFIX=<YOUR-PREFIX>
+$ make install
+@end smallexample
+
+Make sure your python code will look for libraries within the
+@code{<YOUR-PREFIX>} directory.
+
The file @code{python/example/example.py} contains all the code samples
seen so far, incuding the @code{make_url()} helper function.
It is run as a typical Flask application, using the following commands:
diff --git a/python/example/example.py b/python/example/example.py
@@ -1,7 +1,7 @@
import flask
import requests
from urllib.parse import urljoin, urlencode
-from pytaler import amounts
+from pytaler import amount
import base64
import os
import logging