Permalink
Browse files

Limit Python 2.6 commands.

  • Loading branch information...
jmchilton committed Nov 11, 2015
1 parent cbc2806 commit c1713d235db4c7b50a187e064b2528a8094ce6b9
Showing with 6 additions and 0 deletions.
  1. +6 −0 planemo/cli.py
@@ -14,6 +14,9 @@
from .config import read_global_config # noqa, ditto
from planemo import __version__ # noqa, ditto

PYTHON_2_7_COMMANDS = ["cwl_run", "cwl_script"]
IS_PYTHON_2_7 = sys.version_info[0] == 2 and sys.version_info[1] >= 7


CONTEXT_SETTINGS = dict(auto_envvar_prefix='PLANEMO')
COMMAND_ALIASES = {
@@ -78,6 +81,9 @@ def list_cmds():
filename.startswith('cmd_'):
rv.append(filename[len("cmd_"):-len(".py")])
rv.sort()
if not IS_PYTHON_2_7:
for command in PYTHON_2_7_COMMANDS:
rv.remove(command)
return rv


0 comments on commit c1713d2

Please sign in to comment.