branch | 3.5 |
changeset 3115 | 29262ba01464 |
parent 2905 | b23bbb31368c |
child 3117 | 32686ae66c75 |
--- a/cwctl.py Thu Sep 03 14:08:17 2009 +0200 +++ b/cwctl.py Mon Sep 07 12:22:14 2009 +0200 @@ -5,7 +5,13 @@ %s""" import sys -from os import remove, listdir, system, kill, getpgid, pathsep +from os import remove, listdir, system, pathsep +try: + from os import kill, getpgid +except ImportError: + def kill(*args): pass + def getpgid(): pass + from os.path import exists, join, isfile, isdir from logilab.common.clcommands import register_commands, pop_arg