diff --git a/Author_Template/PaperCheck.py b/Author_Template/PaperCheck.py index 8377fa0..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 @@ -687,11 +685,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!