I’ve a main execution python file (F) where I would like to use some services (S)from other python class
the folder structure is :
root/a/my file to execute -- (F)
root/b/python class I would like to use -- (S)
how can I call to the requested python class (S) within my file (F)?
thanks.
This may be too obvious but other answers are missing the need to ensure that module
bis in yoursys.path. Thus assuming the folder structure in the question and assuming that directorybcontains a file called__init__.pyalongside the modules.py, then this incantation is needed: