diff options
Diffstat (limited to 'scripts/sysroot-relativelinks.py')
-rwxr-xr-x | scripts/sysroot-relativelinks.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/sysroot-relativelinks.py b/scripts/sysroot-relativelinks.py index ac26367e77..56e36f3ad5 100755 --- a/scripts/sysroot-relativelinks.py +++ b/scripts/sysroot-relativelinks.py @@ -1,4 +1,8 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 +# +# SPDX-License-Identifier: GPL-2.0-only +# + import sys import os @@ -24,7 +28,7 @@ def handlelink(filep, subdir): os.symlink(os.path.relpath(topdir+link, subdir), filep) for subdir, dirs, files in os.walk(topdir): - for f in files: + for f in dirs + files: filep = os.path.join(subdir, f) if os.path.islink(filep): #print("Considering %s" % filep) |