Skip to content
Snippets Groups Projects
Commit 9fec47b0 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: make import_* follow symlinks

parent 04a380e9
No related branches found
No related tags found
1 merge request!33🚑 make import_* follow symlinks
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
do_tests.py: Do not crash when super project has an hyphen in its name. do_tests.py: Do not crash when super project has an hyphen in its name.
import_* follow symlinks.
7.0.5 7.0.5
----- -----
......
...@@ -87,7 +87,9 @@ ...@@ -87,7 +87,9 @@
file_list.extend(files) file_list.extend(files)
if directories: if directories:
for directory in directories: for directory in directories:
for root, subdirectories, files in os.walk(directory): for root, subdirectories, files in os.walk(
directory, followlinks=True
):
file_list.extend(os.path.join(root, f) for f in sorted(files)) file_list.extend(os.path.join(root, f) for f in sorted(files))
for filename in file_list: for filename in file_list:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment