diff --git a/migrate.py b/migrate.py index e78589c..64f2673 100755 --- a/migrate.py +++ b/migrate.py @@ -404,7 +404,10 @@ def assemble_collections(spec, args): if not os.path.exists(src): raise Exception('Spec specifies "%s" but file "%s" is not found in checkout' % (plugin, src)) - if not src.endswith('.py'): + if os.path.islink(src): + shutil.copyfile(src, dest, follow_symlinks=False) + continue + elif not src.endswith('.py'): # its not all python files, copy and go to next # TODO: handle powershell import rewrites shutil.copyfile(src, dest)