Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 09408f3c1571cbb746da49a1d2f22702 > files > 2856

python-twisted-17.5.0-1.mga6.x86_64.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])