Sophie

Sophie

distrib > Mageia > 6 > i586 > media > core-release > by-pkgid > 248e2f92d9b832e75f95c6042e4252e2 > files > 2781

python-twisted-16.3.2-1.mga6.i586.rpm

# -*- Python -*- 

from TwistedQuotes import webquoteresource
    
#__file__ is defined to be the name of this file; this is to
#get the sibling file "quotes.txt" which should be in the same directory
import os
quotefile = os.path.join(os.path.split(__file__)[0], "quotes.txt")

#ResourceScript requires us to define 'resource'.
#This resource is used to render the page.
resource = webquoteresource.QuoteResource([quotefile])