Importing a .py file inside a directory in other directory

I am new to robot framework,
so I want to access a function in a py file in packages but the file is in a directory which is in other directory.


both dir1 and dir2 have file in them, so how can i access the function in the file

Hi Arun,

There are many ways to access python functions in Robot Framework, when asking a question it’s always a good idea to show some code examples of what you’re attempting so we can guide you.

The most common ways to access python functions are:

But there are other ways as well depending on what you want to achieve.

If you can clarify what you’re trying to do (give examples of how your robot file is calling the python and what the python function name as well as the relative path to the python file if you can) then we can help.