We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbc2806 commit c1713d2Copy full SHA for c1713d2
planemo/cli.py
@@ -14,6 +14,9 @@
14
from .config import read_global_config # noqa, ditto
15
from planemo import __version__ # noqa, ditto
16
17
+PYTHON_2_7_COMMANDS = ["cwl_run", "cwl_script"]
18
+IS_PYTHON_2_7 = sys.version_info[0] == 2 and sys.version_info[1] >= 7
19
+
20
21
CONTEXT_SETTINGS = dict(auto_envvar_prefix='PLANEMO')
22
COMMAND_ALIASES = {
@@ -78,6 +81,9 @@ def list_cmds():
78
81
filename.startswith('cmd_'):
79
82
rv.append(filename[len("cmd_"):-len(".py")])
80
83
rv.sort()
84
+ if not IS_PYTHON_2_7:
85
+ for command in PYTHON_2_7_COMMANDS:
86
+ rv.remove(command)
87
return rv
88
89
0 commit comments