123456789101112131415161718192021 |
- from os import path, getcwd
- from pycs.database.File import File
- class MediaFile:
- # pylint: disable=too-few-public-methods
- """
- contains various attributes of a saved media file
- """
- def __init__(self, file: File):
- self.type = file.type
- self.size = file.size
- self.frames = file.frames
- self.fps = file.fps
- if path.isabs(file.path):
- self.path = file.path
- else:
- self.path = path.join(getcwd(), file.path)
|