aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-08-17 10:15:49 -0400
committerDeterminant <[email protected]>2020-08-17 10:15:49 -0400
commite1f70934ca4d0f195008da7a6eac1635e1bc624e (patch)
tree82bd694055682b7d5bf87608d8249615531b354d
parent98142861076ec810b40813c9a63ff5d51349108b (diff)
check Python minor version
-rw-r--r--README.rst5
-rwxr-xr-xkeytree.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index b73cc8c..aa9e27a 100644
--- a/README.rst
+++ b/README.rst
@@ -1,6 +1,7 @@
-keytree
-=======
+keytree.py
+==========
+- Make sure you have Python >= 3.7
- CD into the cloned repo
- Derive 10 keys from the given mnemonic: ``./keytree.py --end-idx 10``
- Generate a new mnemonic and derive 10 keys from it: ``./keytree.py --end-idx 10 --gen-mnemonic``
diff --git a/keytree.py b/keytree.py
index ce4727d..721324a 100755
--- a/keytree.py
+++ b/keytree.py
@@ -34,6 +34,9 @@
import os
import sys
+if sys.version_info[1] < 7:
+ sys.write("Python should be >= 3.7")
+ sys.exit(1)
basedir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, basedir + "/freezed_deps")