toolsutils.py
branch3.5
changeset 3115 29262ba01464
parent 2615 1ea41b7c0836
child 3163 edfe43ceaa35
child 4212 ab6573088b4a
--- a/toolsutils.py	Thu Sep 03 14:08:17 2009 +0200
+++ b/toolsutils.py	Mon Sep 07 12:22:14 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