summaryrefslogtreecommitdiff
path: root/python_bindings_example.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-01-05 11:15:07 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-01-05 11:15:07 +0100
commite01252590377e5e7d4984dcc15fa04733b4f90f4 (patch)
tree5bd16980820c06d93e3465a199e1ee85f38a20c8 /python_bindings_example.py
parent67fedbf575f864b9f420bac82fafe3d039b7e069 (diff)
downloadlibnitrokey-e01252590377e5e7d4984dcc15fa04733b4f90f4.tar.gz
libnitrokey-e01252590377e5e7d4984dcc15fa04733b4f90f4.tar.bz2
Let user know what to do when library file could not be found
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'python_bindings_example.py')
-rwxr-xr-xpython_bindings_example.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python_bindings_example.py b/python_bindings_example.py
index 6ddcbc4..a8f0dbb 100755
--- a/python_bindings_example.py
+++ b/python_bindings_example.py
@@ -60,6 +60,8 @@ def get_library():
print("File does not exist: " + p)
if not C:
print("No library file found")
+ print("Please set the path using LIBNK_PATH environment variable to existing library or compile it (see "
+ "README.md for details)")
sys.exit(1)
return C