File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 7
7
annotations.
8
8
nixio upgrade: Update older files to the newest file format.
9
9
"""
10
+ import sys
10
11
import argparse
11
12
from . import explore , validate , upgrade
12
13
@@ -15,9 +16,13 @@ def main():
15
16
parser = argparse .ArgumentParser (
16
17
description = "Command line interface for nixio tools"
17
18
)
18
-
19
- subcmds = parser .add_subparsers (title = "commands" , required = True ,
20
- dest = "cmd" )
19
+ if sys .version_info .major < 3 or sys .version_info .minor < 6 :
20
+ raise RuntimeError ("nixio does not support python versions less than 3.6!" )
21
+ if sys .version_info .minor < 7 :
22
+ subcmds = parser .add_subparsers (title = "commands" , dest = "cmd" )
23
+ else :
24
+ subcmds = parser .add_subparsers (title = "commands" , required = True ,
25
+ dest = "cmd" )
21
26
22
27
# nixio explore
23
28
explore_cmd = subcmds .add_parser ("explore" , help = explore .__doc__ )
You can’t perform that action at this time.
0 commit comments