aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.py b/configure.py
index 98fca3fe0..7b2a822d5 100755
--- a/configure.py
+++ b/configure.py
@@ -1800,19 +1800,19 @@ def choose_link_method(options):
"""
Copy or link the file, depending on what the platform offers
"""
-def portable_symlink(filename, target_dir, method):
+def portable_symlink(file_path, target_dir, method):
- if not os.access(filename, os.R_OK):
- logging.warning('Missing file %s' % (filename))
+ if not os.access(file_path, os.R_OK):
+ logging.warning('Missing file %s' % (file_path))
return
if method == 'symlink':
- rel_filename = os.path.relpath(filename, start=target_dir)
- os.symlink(rel_filename, os.path.join(target_dir, os.path.basename(filename)))
+ rel_file_path = os.path.relpath(file_path, start=target_dir)
+ os.symlink(rel_file_path, os.path.join(target_dir, os.path.basename(file_path)))
elif method == 'hardlink':
- os.link(filename, os.path.join(target_dir, os.path.basename(filename)))
+ os.link(file_path, os.path.join(target_dir, os.path.basename(file_path)))
elif method == 'copy':
- shutil.copy(filename, target_dir)
+ shutil.copy(file_path, target_dir)
else:
raise Exception('Unknown link method %s' % (method))