AttributeError: type object ‘Config’ has no attribute ‘data_path’ . Code
path = Config.data_path()/'planet'
path.mkdir( exist_ok = True )
path
AttributeError: type object ‘Config’ has no attribute ‘data_path’ . Code
path = Config.data_path()/'planet'
path.mkdir( exist_ok = True )
path
@nightwolf
what have you defined the function data_path() as?
Im guessing that data_path is a variable, not a function.You need to remove the brackets.
moreover, why do you define variables this way rather than simply using the Path function, as:
path=Path(data_path/‘planet’)
??