i have some setter function :
@images_path.setter
def images_path(self, *images_path: tuple):
self.__images_path =
os.path.abspath(os.path.join(os.pardir,'BossGame', 'Resources','images'))
i want to pass input that contain: 'BossGame', 'Resources', 'images' in the input images_path to the os.path.join function
class Nature(object):
def __init__(self):
self.images_path = ['BossGame', 'Resources', 'images']
self.sound_path = ['BossGame', 'Resources', 'music']
pass
@property
def images_path(self)->str:
return self.__images_path
@images_path.setter
def images_path(self, *images_path: tuple):
self.__images_path =
os.path.abspath(os.path.join(os.pardir,images_path))
the Error:
TypeError: join() argument must be str or bytes, not 'list'