toolsutils.py
changeset 3163 edfe43ceaa35
parent 2790 968108e16066
parent 3115 29262ba01464
child 4252 6c4f109c2b03
--- a/toolsutils.py	Wed Sep 02 16:42:07 2009 +0200
+++ b/toolsutils.py	Thu Sep 10 08:13:22 2009 +0200
@@ -10,9 +10,15 @@
 # XXX move most of this in logilab.common (shellutils ?)
 
 import os, sys
-from os import listdir, makedirs, symlink, environ, chmod, walk, remove
+from os import listdir, makedirs, environ, chmod, walk, remove
 from os.path import exists, join, abspath, normpath
 
+try:
+    from os import symlink
+except ImportError:
+    def symlink(*args):
+        raise NotImplementedError
+
 from logilab.common.clcommands import Command as BaseCommand, \
      main_run as base_main_run
 from logilab.common.compat import any