def __init__(self, filename):
    'Initializer.'
    self.repo = pywikibot.Site('wikidata', 'wikidata').data_repository()
    self.filename = filename
    if (not os.path.exists(self.filename)):
        pywikibot.output(('Cannot find %s. Try providing the absolute path.' % self.filename))
        sys.exit(1)
Initializer.
def __init__(self, filename):
    
    self.repo = pywikibot.Site('wikidata', 'wikidata').data_repository()
    self.filename = filename
    if (not os.path.exists(self.filename)):
        pywikibot.output(('Cannot find %s. Try providing the absolute path.' % self.filename))
        sys.exit(1)