Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Author_Template/PaperCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@

import os
import sys
import string
import time

import AdassChecks
import TexScanner
Expand Down Expand Up @@ -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!
Expand Down