From 0092e173a98b68c72cb6b5cf100d83f9119655af Mon Sep 17 00:00:00 2001 From: John Swinbank Date: Fri, 15 Oct 2021 14:50:38 +0200 Subject: [PATCH 1/2] Use AdassConfig to find subject index file --- Author_Template/PaperCheck.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Author_Template/PaperCheck.py b/Author_Template/PaperCheck.py index 8377fa0..3fef76b 100755 --- a/Author_Template/PaperCheck.py +++ b/Author_Template/PaperCheck.py @@ -687,11 +687,10 @@ def GetFileEncodings (TexFileName,Problems) : def CheckSubjectIndexEntries(Paper, Problems, TexFileName = "") : # Read the total list of keywords from subjectKeywords.txt and newKeywords.txt - # Is there a better way to use AdassConfig.* methods to point at relative file paths? Entries = compose(set, Reduce(__add__), Map(AdassIndex.ReadIndexList))( - ['../Author_Template/subjectKeywords.txt', '../Author_Template/newKeywords.txt'] ) + [AdassConfig.MainSubjectIndexFile(), AdassConfig.NewSubjectIndexFile()]) if not Entries: - Problems.append( "No subject keywords found **at all**?! (../Author_Template/{subject|new}Keywords.txt missing?" ) + Problems.append( "No subject keywords found **at all**?! ({subject|new}Keywords.txt missing?" ) return False # ssindex entries that are not in Entries pose a problem! From cf77b3554c174e64cd8f3523e377a66cb20107d2 Mon Sep 17 00:00:00 2001 From: John Swinbank Date: Fri, 15 Oct 2021 14:51:53 +0200 Subject: [PATCH 2/2] Remove unused imports --- Author_Template/PaperCheck.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Author_Template/PaperCheck.py b/Author_Template/PaperCheck.py index 3fef76b..59c9681 100755 --- a/Author_Template/PaperCheck.py +++ b/Author_Template/PaperCheck.py @@ -140,8 +140,6 @@ import os import sys -import string -import time import AdassChecks import TexScanner