From bf9dae761420bfbe62e2fdf5951005952bb16153 Mon Sep 17 00:00:00 2001 From: Camille GOUTTEBROZE Date: Fri, 29 Aug 2014 16:05:54 +0200 Subject: [PATCH] Do not create symlink is os module has no attribute symlink --- bin/virtual_salome.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/virtual_salome.py b/bin/virtual_salome.py index 5ab9924a1..f7d39c80f 100755 --- a/bin/virtual_salome.py +++ b/bin/virtual_salome.py @@ -62,7 +62,11 @@ def symlink(src, dest): if verbose: print 'Creating symlink %s' % dest pass - os.symlink(src, dest) + if hasattr(os,"symlink") : + os.symlink(src, dest) + else : + print "Do not create symlink %s. It is impossible on %s." % ( dest, sys.platform ) + return else: if verbose: print 'Symlink %s already exists' % dest -- 2.39.2