mrmp/architecture.py

21 lines
404 B
Python
Raw Normal View History

2021-10-10 13:22:02 +00:00
import os
import distribution
class Architecture:
def __init__(self, name):
self.name = name
self.distribution = distribution.Distribution(self)
# TODO subsystems
self.subsystems = {}
def __str__(self):
lines = [
f'Name: {self.name}',
]
return os.linesep.join(lines)
X86 = Architecture('x86_64')
I86 = Architecture('i686')