Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

src/b/i/BibleOrgSys-HEAD/USXXMLBible.py   BibleOrgSys(Download)
 
import Globals
from USXFilenames import USXFilenames
from USXXMLBibleBook import USXXMLBibleBook
from Bible import Bible
    # See if there's an USXBible project here in this given folder
    numFound = 0
    UFns = USXFilenames( givenFolderName ) # Assuming they have standard Paratext style filenames
    if Globals.verbosityLevel > 2: print( UFns )
    filenameTuples = UFns.getConfirmedFilenames()
 
        # See if there's an USX Bible here in this folder
        UFns = USXFilenames( tryFolderName ) # Assuming they have standard Paratext style filenames
        if Globals.verbosityLevel > 2: print( UFns )
        filenameTuples = UFns.getConfirmedFilenames()
 
        # Find the filenames of all our books
        self.USXFilenamesObject = USXFilenames( self.givenFolderName )
        self.possibleFilenameDict = {}
        for BBB,filename in self.USXFilenamesObject.getConfirmedFilenames():

src/b/i/BibleOrgSys-HEAD/Tests/USXFilenamesTests.py   BibleOrgSys(Download)
    def setUp( self ):
        testFolder = 'Tests/DataFilesForTests/USXTest1/' # This is a RELATIVE path
        if os.access( testFolder, os.R_OK ): # Create the USXFilenames object
            self.UFns = USXFilenames.USXFilenames( testFolder )
        else: print( "Sorry, test folder '{}' doesn't exist on this computer.".format( testFolder ) )
    def setUp( self ):
        testFolder = 'Tests/DataFilesForTests/USXTest2/' # This is a RELATIVE path
        if os.access( testFolder, os.R_OK ): # Create the USXFilenames object
            self.UFns = USXFilenames.USXFilenames( testFolder )
        else: print( "Sorry, test folder '{}' doesn't exist on this computer.".format( testFolder ) )