(self, d, alt, value)
| 142 | return options |
| 143 | |
| 144 | def _setdefaultopt(self, d, alt, value): |
| 145 | for opt in alt[1:]: |
| 146 | try: |
| 147 | return d[opt] |
| 148 | except KeyError: |
| 149 | pass |
| 150 | value = d.setdefault(alt[0], os.path.normpath(value)) |
| 151 | dir_path = os.path.dirname(value) |
| 152 | if dir_path and not os.path.exists(dir_path): |
| 153 | os.makedirs(dir_path) |
| 154 | return value |
| 155 | |
| 156 | def _prepare_expander(self): |
| 157 | shortname, hostname = self.name.split('@', 1) |
no test coverage detected