Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Private Attributes
pymake.parserdata.VPathDirective Class Reference
Inheritance diagram for pymake.parserdata.VPathDirective:
Inheritance graph
[legend]
Collaboration diagram for pymake.parserdata.VPathDirective:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def execute
def dump

Public Attributes

 exp

Static Private Attributes

tuple __slots__ = ('exp',)

Detailed Description

Definition at line 408 of file parserdata.py.


Constructor & Destructor Documentation

def pymake.parserdata.VPathDirective.__init__ (   self,
  exp 
)

Definition at line 411 of file parserdata.py.

00411 
00412     def __init__(self, exp):
00413         assert isinstance(exp, (data.Expansion, data.StringExpansion))
00414         self.exp = exp


Member Function Documentation

def pymake.parserdata.VPathDirective.dump (   self,
  fd,
  indent 
)

Definition at line 433 of file parserdata.py.

00433 
00434     def dump(self, fd, indent):
00435         print >>fd, "%sVPath %s" % (indent, self.exp)

Here is the caller graph for this function:

def pymake.parserdata.VPathDirective.execute (   self,
  makefile,
  context 
)

Definition at line 415 of file parserdata.py.

00415 
00416     def execute(self, makefile, context):
00417         words = list(data.stripdotslashes(self.exp.resolvesplit(makefile, makefile.variables)))
00418         if len(words) == 0:
00419             makefile.clearallvpaths()
00420         else:
00421             pattern = data.Pattern(words[0])
00422             mpaths = words[1:]
00423 
00424             if len(mpaths) == 0:
00425                 makefile.clearvpath(pattern)
00426             else:
00427                 dirs = []
00428                 for mpath in mpaths:
00429                     dirs.extend((dir for dir in mpath.split(os.pathsep)
00430                                  if dir != ''))
00431                 if len(dirs):
00432                     makefile.addvpath(pattern, dirs)


Member Data Documentation

tuple pymake.parserdata.VPathDirective.__slots__ = ('exp',) [static, private]

Definition at line 409 of file parserdata.py.

Definition at line 413 of file parserdata.py.


The documentation for this class was generated from the following file: