Changeset 4846

Show
Ignore:
Timestamp:
11/18/08 15:34:58 (2 months ago)
Author:
k0s
Message:

check to see if the requirement is a file relative to the template

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • traclegosscript/anyrelease/traclegos/project.py

    r4292 r4846  
    3535        # install the requirements 
    3636        for requirement in getattr(self, 'requirements', ()): 
     37             
     38            # if the path is relative to the template, give the full path 
     39            path = os.path.join(self.module_dir(), requirement) 
     40            if os.path.exists(path): 
     41                requirement = path 
     42 
    3743            subprocess.call(['poacheggs', '-r', requirement]) 
    3844