We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e246db commit 205f837Copy full SHA for 205f837
tools/add_cc4_links.py
@@ -14,7 +14,7 @@
14
# You should have received a copy of the GNU General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17
-import re, sys
+import os.path, re, sys
18
from pathlib import Path
19
20
class AddCC4Links(object):
@@ -66,7 +66,8 @@ def get_path(self):
66
def get_files(self):
67
"""Get all the 4.0 files *except* those we are linking to"""
68
self.files = [f for f in self.path.glob('*_4.0*.html')
69
- if not f.match(self.exclude_pattern)]
+ if (not os.path.islink(f) and
70
+ not f.match(self.exclude_pattern))]
71
self.files.sort()
72
73
def process_files(self):
0 commit comments