Package nltk_lite :: Package contrib :: Package classifier :: Package exceptions :: Module filenotfounderror
[hide private]
[frames] | no frames]

Source Code for Module nltk_lite.contrib.classifier.exceptions.filenotfounderror

 1  # Natural Language Toolkit - FileNotFound Error 
 2  #  Is thrown when a file cannot be found at the path specified 
 3  # 
 4  # Author: Sumukh Ghodke <sumukh dot ghodke at gmail dot com> 
 5  # 
 6  # URL: <http://nltk.sf.net> 
 7  # This software is distributed under GPL, for license information see LICENSE.TXT 
 8   
 9  import os 
10   
11 -class FileNotFoundError:
12 - def __init__(self, path):
13 self.msg = 'cannot find file at ' + os.path.abspath(path)
14
15 - def __str__(self):
16 return self.msg
17