From 1d41e7cf8640ab2f4f44f189ccb7dbf60145c858 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Apr 2012 18:52:00 +0000 Subject: Deal with missing os.symlink. --- ext.wscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext.wscript b/ext.wscript index 5f9e0c3..e1d71c7 100644 --- a/ext.wscript +++ b/ext.wscript @@ -7,8 +7,9 @@ from waflib.extras import autowaf as autowaf # A rule for making a link in the build directory to a source file def link(task): - func = os.symlink - if not func: + if hasattr(os, 'symlink'): + func = os.symlink + else: func = shutil.copy # Symlinks unavailable, make a copy try: -- cgit v1.2.1