mrmp/repository.py
2023-01-28 21:19:16 +01:00

19 lines
505 B
Python

import arguments
import datetime
import os
class Repository:
def __init__(self, args):
self.directory = args[arguments.DIRECTORY]
self.temporary = args[arguments.TEMPORARY]
self.tmp = os.path.join(self.temporary,
datetime.datetime.now()
.strftime('%Y%m%d%H%M%S'))
def __str__(self):
return f'''\
Directory: {self.directory}
{os.path.realpath(self.directory)}
Temporary: {self.tmp}
'''