diff options
author | David Robillard <d@drobilla.net> | 2012-04-06 18:52:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-06 18:52:00 +0000 |
commit | 1d41e7cf8640ab2f4f44f189ccb7dbf60145c858 (patch) | |
tree | 552c9dfc23fa286e46fe9bd6b4cc7ce4236588ef /ext.wscript | |
parent | f9ca8aa64fcad5b50bc7a56d2c72b78ce356eef2 (diff) | |
download | lv2-1d41e7cf8640ab2f4f44f189ccb7dbf60145c858.tar.xz |
Deal with missing os.symlink.
Diffstat (limited to 'ext.wscript')
-rw-r--r-- | ext.wscript | 5 |
1 files 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: |