|
31 | 31 |
|
32 | 32 | from gettext import gettext as _
|
33 | 33 |
|
34 |
| -LastModifiedDate = '2018-01-18' # by RJH |
| 34 | +LastModifiedDate = '2018-01-21' # by RJH |
35 | 35 | ShortProgName = "USFMBible"
|
36 | 36 | ProgName = "USFM Bible handler"
|
37 | 37 | ProgVersion = '0.75'
|
@@ -161,6 +161,7 @@ def USFMBibleFileCheck( givenFolderName, strictCheck=True, autoLoad=False, autoL
|
161 | 161 | if not discountSSF:
|
162 | 162 | # if there's an SSF, we won't accept it as a USFM Bible, because it should be opened as a PTX7 Bible
|
163 | 163 | numFound += 1
|
| 164 | + else: numFound += 1 |
164 | 165 | if numFound:
|
165 | 166 | if BibleOrgSysGlobals.verbosityLevel > 2: print( exp("USFMBibleFileCheck got {} in {}").format( numFound, givenFolderName ) )
|
166 | 167 | if numFound == 1 and (autoLoad or autoLoadBooks):
|
@@ -223,6 +224,7 @@ def USFMBibleFileCheck( givenFolderName, strictCheck=True, autoLoad=False, autoL
|
223 | 224 | # if there's an SSF, we won't accept it as a USFM Bible, because it should be opened as a PTX7 Bible
|
224 | 225 | foundProjects.append( tryFolderName )
|
225 | 226 | numFound += 1
|
| 227 | + else: numFound += 1 |
226 | 228 | if numFound:
|
227 | 229 | if BibleOrgSysGlobals.verbosityLevel > 2: print( exp("USFMBibleFileCheck foundProjects {} {}").format( numFound, foundProjects ) )
|
228 | 230 | if numFound == 1 and (autoLoad or autoLoadBooks):
|
@@ -718,7 +720,7 @@ def demo():
|
718 | 720 | result3.pickle()
|
719 | 721 | ##result3.toDrupalBible()
|
720 | 722 | result3.doAllExports( wantPhotoBible=False, wantODFs=False, wantPDFs=False )
|
721 |
| - |
| 723 | + halt |
722 | 724 |
|
723 | 725 | if 1: # Load and process some of our test versions
|
724 | 726 | for j,(name, encoding, testFolder) in enumerate( (
|
|
0 commit comments