Skip to content
Advertisement

Cannot Locate my Module from another folder n python

I’ve the following structure in my simple python project:

JavaScript

The tokengenerator.py module produces Token variables and I need to call it in generatedata.pymodule and I used the following code line for this purpose:

JavaScript

but it returns the error below:

JavaScript

Would you please advise ?

Advertisement

Answer

from this article, you can add the path below the Functions folder to the searchpath for modules by adding .. (combined with the scriptpath)

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement