I'm trying to get a value from a very simple class, but I have a problem that I can not solve. Here are the codes below:
Main class:
from directores.directores import Directores
# A classe Directores encontra-se em directores/directores.py
def main():
print (Strings.start_description)
# Sobrescrever arquivos encontrados
arcpy.env.overwriteOutput = True
# Criando todos os diretรณrios
directores = Directores(Parameters.main_folder + r"\")
print(directores.getInput_folder_SRTM())
The Directors class:
class Directores(object):
def __init__(self, main_folder):
# Diretórios secundários de entrada - INPUT
self.input_folder = main_folder + r"\Input\"
self.input_folder_SRTM = self.input_folder + r"SRTMs\"
def getInput_folder_SRTM(self):
return self.input_folder_SRTM
With the following error:
Runtime error
Traceback (most recent call last):
File "<string>", line 50, in <module>
File "<string>", line 36, in main
AttributeError: 'Directores' object has no attribute 'getInput_folder_SRTM'
In each folder I created an empty file __init__.py
If you need more information, I'll be happy to help. And if you give me some tips I also thank you very much!