~therp-nl/anybox.recipe.openerp/jbaudoux-relative_paths_resolve_conflict

« back to all changes in this revision

Viewing changes to anybox/recipe/openerp/base.py

  • Committer: Jacques-Etienne Baudoux
  • Date: 2013-09-08 13:48:02 UTC
  • Revision ID: je@bcim.be-20130908134802-2lvo19d8u3sfccz9
Support buildout option "relative_paths = true"

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        self.clear_retry = clear_retry == 'true'
112
112
 
113
113
        # same as in zc.recipe.eggs
 
114
        relative_paths = options.get(
 
115
            'relative-paths',
 
116
            buildout['buildout'].get('relative-paths', 'false')
 
117
            )
 
118
        if relative_paths == 'true':
 
119
            self._relative_paths = self.buildout_dir
 
120
        else:
 
121
            self._relative_paths = ''
 
122
            assert relative_paths == 'false'
114
123
        self.extra_paths = [
115
124
            join(self.buildout_dir, p.strip())
116
125
            for p in self.options.get('extra-paths', '').split(os.linesep)