| Conditions | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | from niprov.dependencies import Dependencies |
||
| 7 | def __init__(self, location, provenance=None, dependencies=Dependencies()): |
||
| 8 | self.dependencies = dependencies |
||
| 9 | self.listener = dependencies.getListener() |
||
| 10 | self.filesystem = dependencies.getFilesystem() |
||
| 11 | self.hasher = dependencies.getHasher() |
||
| 12 | self.location = dependencies.getLocationFactory().fromString(location) |
||
| 13 | self.formats = dependencies.getFormatFactory() |
||
| 14 | if provenance: |
||
| 15 | self.provenance = provenance |
||
| 16 | else: |
||
| 17 | self.provenance = {} |
||
| 18 | self.provenance.update(self.location.toDictionary()) |
||
| 19 | self.path = self.provenance['path'] |
||
| 20 | |||
| 49 |