Beispiel #1
0
 def __init__(self, pathname, root='.'):
     path = os.path.abspath(os.path.join(root, pathname))
     InvalidID.__init__(self, 'No such file: %s' % path)
Beispiel #2
0
 def __init__(self, pathname, root='.'):
     path = os.path.abspath(os.path.join(root, pathname))
     InvalidID.__init__(self, 'No such file: %s' % path)
Beispiel #3
0
 def __init__(self, path, root, msg=None, **kwargs):
     if msg == None:
         msg = 'Path "%s" not in root "%s"' % (path, root)
     InvalidID.__init__(self, msg=msg, **kwargs)
     self.path = path
     self.root = root
Beispiel #4
0
 def __init__(self, path, root, msg=None, **kwargs):
     if msg == None:
         msg = 'Path "%s" not in root "%s"' % (path, root)
     InvalidID.__init__(self, msg=msg, **kwargs)
     self.path = path
     self.root = root