mrmp/distribution.py
Marc Beninca 1db8c559a2 files
2023-01-28 21:19:16 +01:00

20 lines
503 B
Python

import os
DISTRIBUTION = 'distrib'
class Distribution:
def __init__(self, architecture):
self.architecture = architecture
self.path = os.sep.join([DISTRIBUTION, self.architecture.name])
self.load()
def load(self):
files = self.architecture.repository.get_files(self.path)
def __str__(self):
lines = [
f'Architecture: {self.architecture.name}',
f' Path: {self.path}',
]
return os.linesep.join(lines)